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

73 lines
2.0 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';
import type { NotificationOption } from './NotificationOption';
import {
NotificationOptionFromJSON,
NotificationOptionFromJSONTyped,
NotificationOptionToJSON,
} from './NotificationOption';
/**
*
* @export
* @interface NotificationOptions
*/
export interface NotificationOptions {
/**
*
* @type {Array<NotificationOption>}
* @memberof NotificationOptions
*/
options?: Array<NotificationOption> | null;
}
/**
* Check if a given object implements the NotificationOptions interface.
*/
export function instanceOfNotificationOptions(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function NotificationOptionsFromJSON(json: any): NotificationOptions {
return NotificationOptionsFromJSONTyped(json, false);
}
export function NotificationOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationOptions {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'options': !exists(json, 'Options') ? undefined : (json['Options'] === null ? null : (json['Options'] as Array<any>).map(NotificationOptionFromJSON)),
};
}
export function NotificationOptionsToJSON(value?: NotificationOptions | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Options': value.options === undefined ? undefined : (value.options === null ? null : (value.options as Array<any>).map(NotificationOptionToJSON)),
};
}