/* 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 { LibraryOptionInfoDto } from './LibraryOptionInfoDto'; import { LibraryOptionInfoDtoFromJSON, LibraryOptionInfoDtoFromJSONTyped, LibraryOptionInfoDtoToJSON, } from './LibraryOptionInfoDto'; import type { LibraryTypeOptionsDto } from './LibraryTypeOptionsDto'; import { LibraryTypeOptionsDtoFromJSON, LibraryTypeOptionsDtoFromJSONTyped, LibraryTypeOptionsDtoToJSON, } from './LibraryTypeOptionsDto'; /** * Library options result dto. * @export * @interface LibraryOptionsResultDto */ export interface LibraryOptionsResultDto { /** * Gets or sets the metadata savers. * @type {Array} * @memberof LibraryOptionsResultDto */ metadataSavers?: Array; /** * Gets or sets the metadata readers. * @type {Array} * @memberof LibraryOptionsResultDto */ metadataReaders?: Array; /** * Gets or sets the subtitle fetchers. * @type {Array} * @memberof LibraryOptionsResultDto */ subtitleFetchers?: Array; /** * Gets or sets the type options. * @type {Array} * @memberof LibraryOptionsResultDto */ typeOptions?: Array; } /** * Check if a given object implements the LibraryOptionsResultDto interface. */ export function instanceOfLibraryOptionsResultDto(value: object): boolean { let isInstance = true; return isInstance; } export function LibraryOptionsResultDtoFromJSON(json: any): LibraryOptionsResultDto { return LibraryOptionsResultDtoFromJSONTyped(json, false); } export function LibraryOptionsResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryOptionsResultDto { if ((json === undefined) || (json === null)) { return json; } return { 'metadataSavers': !exists(json, 'MetadataSavers') ? undefined : ((json['MetadataSavers'] as Array).map(LibraryOptionInfoDtoFromJSON)), 'metadataReaders': !exists(json, 'MetadataReaders') ? undefined : ((json['MetadataReaders'] as Array).map(LibraryOptionInfoDtoFromJSON)), 'subtitleFetchers': !exists(json, 'SubtitleFetchers') ? undefined : ((json['SubtitleFetchers'] as Array).map(LibraryOptionInfoDtoFromJSON)), 'typeOptions': !exists(json, 'TypeOptions') ? undefined : ((json['TypeOptions'] as Array).map(LibraryTypeOptionsDtoFromJSON)), }; } export function LibraryOptionsResultDtoToJSON(value?: LibraryOptionsResultDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'MetadataSavers': value.metadataSavers === undefined ? undefined : ((value.metadataSavers as Array).map(LibraryOptionInfoDtoToJSON)), 'MetadataReaders': value.metadataReaders === undefined ? undefined : ((value.metadataReaders as Array).map(LibraryOptionInfoDtoToJSON)), 'SubtitleFetchers': value.subtitleFetchers === undefined ? undefined : ((value.subtitleFetchers as Array).map(LibraryOptionInfoDtoToJSON)), 'TypeOptions': value.typeOptions === undefined ? undefined : ((value.typeOptions as Array).map(LibraryTypeOptionsDtoToJSON)), }; }