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

97 lines
2.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';
/**
* Class CultureDto.
* @export
* @interface CultureDto
*/
export interface CultureDto {
/**
* Gets the name.
* @type {string}
* @memberof CultureDto
*/
name?: string;
/**
* Gets the display name.
* @type {string}
* @memberof CultureDto
*/
displayName?: string;
/**
* Gets the name of the two letter ISO language.
* @type {string}
* @memberof CultureDto
*/
twoLetterISOLanguageName?: string;
/**
* Gets the name of the three letter ISO language.
* @type {string}
* @memberof CultureDto
*/
readonly threeLetterISOLanguageName?: string | null;
/**
*
* @type {Array<string>}
* @memberof CultureDto
*/
threeLetterISOLanguageNames?: Array<string>;
}
/**
* Check if a given object implements the CultureDto interface.
*/
export function instanceOfCultureDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function CultureDtoFromJSON(json: any): CultureDto {
return CultureDtoFromJSONTyped(json, false);
}
export function CultureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CultureDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'displayName': !exists(json, 'DisplayName') ? undefined : json['DisplayName'],
'twoLetterISOLanguageName': !exists(json, 'TwoLetterISOLanguageName') ? undefined : json['TwoLetterISOLanguageName'],
'threeLetterISOLanguageName': !exists(json, 'ThreeLetterISOLanguageName') ? undefined : json['ThreeLetterISOLanguageName'],
'threeLetterISOLanguageNames': !exists(json, 'ThreeLetterISOLanguageNames') ? undefined : json['ThreeLetterISOLanguageNames'],
};
}
export function CultureDtoToJSON(value?: CultureDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'DisplayName': value.displayName,
'TwoLetterISOLanguageName': value.twoLetterISOLanguageName,
'ThreeLetterISOLanguageNames': value.threeLetterISOLanguageNames,
};
}