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

81 lines
2.1 KiB
TypeScript
Raw 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 { ImageType } from './ImageType';
import {
ImageTypeFromJSON,
ImageTypeFromJSONTyped,
ImageTypeToJSON,
} from './ImageType';
/**
* Class ImageProviderInfo.
* @export
* @interface ImageProviderInfo
*/
export interface ImageProviderInfo {
/**
* Gets the name.
* @type {string}
* @memberof ImageProviderInfo
*/
name?: string;
/**
* Gets the supported image types.
* @type {Array<ImageType>}
* @memberof ImageProviderInfo
*/
supportedImages?: Array<ImageType>;
}
/**
* Check if a given object implements the ImageProviderInfo interface.
*/
export function instanceOfImageProviderInfo(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function ImageProviderInfoFromJSON(json: any): ImageProviderInfo {
return ImageProviderInfoFromJSONTyped(json, false);
}
export function ImageProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageProviderInfo {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'supportedImages': !exists(json, 'SupportedImages') ? undefined : ((json['SupportedImages'] as Array<any>).map(ImageTypeFromJSON)),
};
}
export function ImageProviderInfoToJSON(value?: ImageProviderInfo | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'SupportedImages': value.supportedImages === undefined ? undefined : ((value.supportedImages as Array<any>).map(ImageTypeToJSON)),
};
}