jellyfin-discord-bot/server/jellyfin/models/AddVirtualFolderDto.ts

73 lines
2.0 KiB
TypeScript
Raw Normal View History

2023-05-04 23:34:53 +02:00
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import type { AddVirtualFolderDtoLibraryOptions } from './AddVirtualFolderDtoLibraryOptions';
import {
AddVirtualFolderDtoLibraryOptionsFromJSON,
AddVirtualFolderDtoLibraryOptionsFromJSONTyped,
AddVirtualFolderDtoLibraryOptionsToJSON,
} from './AddVirtualFolderDtoLibraryOptions';
/**
* Add virtual folder dto.
* @export
* @interface AddVirtualFolderDto
*/
export interface AddVirtualFolderDto {
/**
*
* @type {AddVirtualFolderDtoLibraryOptions}
* @memberof AddVirtualFolderDto
*/
libraryOptions?: AddVirtualFolderDtoLibraryOptions | null;
}
/**
* Check if a given object implements the AddVirtualFolderDto interface.
*/
export function instanceOfAddVirtualFolderDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AddVirtualFolderDtoFromJSON(json: any): AddVirtualFolderDto {
return AddVirtualFolderDtoFromJSONTyped(json, false);
}
export function AddVirtualFolderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddVirtualFolderDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'libraryOptions': !exists(json, 'LibraryOptions') ? undefined : AddVirtualFolderDtoLibraryOptionsFromJSON(json['LibraryOptions']),
};
}
export function AddVirtualFolderDtoToJSON(value?: AddVirtualFolderDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'LibraryOptions': AddVirtualFolderDtoLibraryOptionsToJSON(value.libraryOptions),
};
}