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

74 lines
1.8 KiB
TypeScript

/* 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';
/**
* Special view option dto.
* @export
* @interface SpecialViewOptionDto
*/
export interface SpecialViewOptionDto {
/**
* Gets or sets view option name.
* @type {string}
* @memberof SpecialViewOptionDto
*/
name?: string | null;
/**
* Gets or sets view option id.
* @type {string}
* @memberof SpecialViewOptionDto
*/
id?: string | null;
}
/**
* Check if a given object implements the SpecialViewOptionDto interface.
*/
export function instanceOfSpecialViewOptionDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SpecialViewOptionDtoFromJSON(json: any): SpecialViewOptionDto {
return SpecialViewOptionDtoFromJSONTyped(json, false);
}
export function SpecialViewOptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpecialViewOptionDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'id': !exists(json, 'Id') ? undefined : json['Id'],
};
}
export function SpecialViewOptionDtoToJSON(value?: SpecialViewOptionDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Id': value.id,
};
}