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

162 lines
4.7 KiB
TypeScript
Raw Permalink 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';
/**
* Gets or sets the primary image blurhash.
* @export
* @interface BaseItemPersonImageBlurHashes
*/
export interface BaseItemPersonImageBlurHashes {
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
primary?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
art?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
backdrop?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
banner?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
logo?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
thumb?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
disc?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
box?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
screenshot?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
menu?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
chapter?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
boxRear?: { [key: string]: string; };
/**
*
* @type {{ [key: string]: string; }}
* @memberof BaseItemPersonImageBlurHashes
*/
profile?: { [key: string]: string; };
}
/**
* Check if a given object implements the BaseItemPersonImageBlurHashes interface.
*/
export function instanceOfBaseItemPersonImageBlurHashes(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function BaseItemPersonImageBlurHashesFromJSON(json: any): BaseItemPersonImageBlurHashes {
return BaseItemPersonImageBlurHashesFromJSONTyped(json, false);
}
export function BaseItemPersonImageBlurHashesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemPersonImageBlurHashes {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'primary': !exists(json, 'Primary') ? undefined : json['Primary'],
'art': !exists(json, 'Art') ? undefined : json['Art'],
'backdrop': !exists(json, 'Backdrop') ? undefined : json['Backdrop'],
'banner': !exists(json, 'Banner') ? undefined : json['Banner'],
'logo': !exists(json, 'Logo') ? undefined : json['Logo'],
'thumb': !exists(json, 'Thumb') ? undefined : json['Thumb'],
'disc': !exists(json, 'Disc') ? undefined : json['Disc'],
'box': !exists(json, 'Box') ? undefined : json['Box'],
'screenshot': !exists(json, 'Screenshot') ? undefined : json['Screenshot'],
'menu': !exists(json, 'Menu') ? undefined : json['Menu'],
'chapter': !exists(json, 'Chapter') ? undefined : json['Chapter'],
'boxRear': !exists(json, 'BoxRear') ? undefined : json['BoxRear'],
'profile': !exists(json, 'Profile') ? undefined : json['Profile'],
};
}
export function BaseItemPersonImageBlurHashesToJSON(value?: BaseItemPersonImageBlurHashes | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Primary': value.primary,
'Art': value.art,
'Backdrop': value.backdrop,
'Banner': value.banner,
'Logo': value.logo,
'Thumb': value.thumb,
'Disc': value.disc,
'Box': value.box,
'Screenshot': value.screenshot,
'Menu': value.menu,
'Chapter': value.chapter,
'BoxRear': value.boxRear,
'Profile': value.profile,
};
}