/* 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 { RemoteImageInfo } from './RemoteImageInfo'; import { RemoteImageInfoFromJSON, RemoteImageInfoFromJSONTyped, RemoteImageInfoToJSON, } from './RemoteImageInfo'; /** * Class RemoteImageResult. * @export * @interface RemoteImageResult */ export interface RemoteImageResult { /** * Gets or sets the images. * @type {Array} * @memberof RemoteImageResult */ images?: Array | null; /** * Gets or sets the total record count. * @type {number} * @memberof RemoteImageResult */ totalRecordCount?: number; /** * Gets or sets the providers. * @type {Array} * @memberof RemoteImageResult */ providers?: Array | null; } /** * Check if a given object implements the RemoteImageResult interface. */ export function instanceOfRemoteImageResult(value: object): boolean { let isInstance = true; return isInstance; } export function RemoteImageResultFromJSON(json: any): RemoteImageResult { return RemoteImageResultFromJSONTyped(json, false); } export function RemoteImageResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoteImageResult { if ((json === undefined) || (json === null)) { return json; } return { 'images': !exists(json, 'Images') ? undefined : (json['Images'] === null ? null : (json['Images'] as Array).map(RemoteImageInfoFromJSON)), 'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'], 'providers': !exists(json, 'Providers') ? undefined : json['Providers'], }; } export function RemoteImageResultToJSON(value?: RemoteImageResult | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Images': value.images === undefined ? undefined : (value.images === null ? null : (value.images as Array).map(RemoteImageInfoToJSON)), 'TotalRecordCount': value.totalRecordCount, 'Providers': value.providers, }; }