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

74 lines
1.7 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';
/**
* Class ParentalRating.
* @export
* @interface ParentalRating
*/
export interface ParentalRating {
/**
* Gets or sets the name.
* @type {string}
* @memberof ParentalRating
*/
name?: string | null;
/**
* Gets or sets the value.
* @type {number}
* @memberof ParentalRating
*/
value?: number;
}
/**
* Check if a given object implements the ParentalRating interface.
*/
export function instanceOfParentalRating(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function ParentalRatingFromJSON(json: any): ParentalRating {
return ParentalRatingFromJSONTyped(json, false);
}
export function ParentalRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParentalRating {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': !exists(json, 'Name') ? undefined : json['Name'],
'value': !exists(json, 'Value') ? undefined : json['Value'],
};
}
export function ParentalRatingToJSON(value?: ParentalRating | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'Value': value.value,
};
}