/* 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<RemoteImageInfo>}
     * @memberof RemoteImageResult
     */
    images?: Array<RemoteImageInfo> | null;
    /**
     * Gets or sets the total record count.
     * @type {number}
     * @memberof RemoteImageResult
     */
    totalRecordCount?: number;
    /**
     * Gets or sets the providers.
     * @type {Array<string>}
     * @memberof RemoteImageResult
     */
    providers?: Array<string> | 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<any>).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<any>).map(RemoteImageInfoToJSON)),
        'TotalRecordCount': value.totalRecordCount,
        'Providers': value.providers,
    };
}

