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

81 lines
2.3 KiB
TypeScript
Raw Permalink 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';
/**
* Update library options dto.
* @export
* @interface UpdateLibraryOptionsDto
*/
export interface UpdateLibraryOptionsDto {
/**
* Gets or sets the library item id.
* @type {string}
* @memberof UpdateLibraryOptionsDto
*/
id?: string;
/**
*
* @type {AddVirtualFolderDtoLibraryOptions}
* @memberof UpdateLibraryOptionsDto
*/
libraryOptions?: AddVirtualFolderDtoLibraryOptions | null;
}
/**
* Check if a given object implements the UpdateLibraryOptionsDto interface.
*/
export function instanceOfUpdateLibraryOptionsDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateLibraryOptionsDtoFromJSON(json: any): UpdateLibraryOptionsDto {
return UpdateLibraryOptionsDtoFromJSONTyped(json, false);
}
export function UpdateLibraryOptionsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLibraryOptionsDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'Id') ? undefined : json['Id'],
'libraryOptions': !exists(json, 'LibraryOptions') ? undefined : AddVirtualFolderDtoLibraryOptionsFromJSON(json['LibraryOptions']),
};
}
export function UpdateLibraryOptionsDtoToJSON(value?: UpdateLibraryOptionsDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Id': value.id,
'LibraryOptions': AddVirtualFolderDtoLibraryOptionsToJSON(value.libraryOptions),
};
}