/* 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 { MediaUpdateInfoPathDto } from './MediaUpdateInfoPathDto'; import { MediaUpdateInfoPathDtoFromJSON, MediaUpdateInfoPathDtoFromJSONTyped, MediaUpdateInfoPathDtoToJSON, } from './MediaUpdateInfoPathDto'; /** * Media Update Info Dto. * @export * @interface PostUpdatedMediaRequest */ export interface PostUpdatedMediaRequest { /** * Gets or sets the list of updates. * @type {Array} * @memberof PostUpdatedMediaRequest */ updates?: Array; } /** * Check if a given object implements the PostUpdatedMediaRequest interface. */ export function instanceOfPostUpdatedMediaRequest(value: object): boolean { let isInstance = true; return isInstance; } export function PostUpdatedMediaRequestFromJSON(json: any): PostUpdatedMediaRequest { return PostUpdatedMediaRequestFromJSONTyped(json, false); } export function PostUpdatedMediaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostUpdatedMediaRequest { if ((json === undefined) || (json === null)) { return json; } return { 'updates': !exists(json, 'Updates') ? undefined : ((json['Updates'] as Array).map(MediaUpdateInfoPathDtoFromJSON)), }; } export function PostUpdatedMediaRequestToJSON(value?: PostUpdatedMediaRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Updates': value.updates === undefined ? undefined : ((value.updates as Array).map(MediaUpdateInfoPathDtoToJSON)), }; }