/* 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 { NotificationLevel } from './NotificationLevel'; import { NotificationLevelFromJSON, NotificationLevelFromJSONTyped, NotificationLevelToJSON, } from './NotificationLevel'; /** * The admin notification dto. * @export * @interface AdminNotificationDto */ export interface AdminNotificationDto { /** * Gets or sets the notification name. * @type {string} * @memberof AdminNotificationDto */ name?: string | null; /** * Gets or sets the notification description. * @type {string} * @memberof AdminNotificationDto */ description?: string | null; /** * * @type {NotificationLevel} * @memberof AdminNotificationDto */ notificationLevel?: NotificationLevel | null; /** * Gets or sets the notification url. * @type {string} * @memberof AdminNotificationDto */ url?: string | null; } /** * Check if a given object implements the AdminNotificationDto interface. */ export function instanceOfAdminNotificationDto(value: object): boolean { let isInstance = true; return isInstance; } export function AdminNotificationDtoFromJSON(json: any): AdminNotificationDto { return AdminNotificationDtoFromJSONTyped(json, false); } export function AdminNotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationDto { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'Name') ? undefined : json['Name'], 'description': !exists(json, 'Description') ? undefined : json['Description'], 'notificationLevel': !exists(json, 'NotificationLevel') ? undefined : NotificationLevelFromJSON(json['NotificationLevel']), 'url': !exists(json, 'Url') ? undefined : json['Url'], }; } export function AdminNotificationDtoToJSON(value?: AdminNotificationDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Name': value.name, 'Description': value.description, 'NotificationLevel': NotificationLevelToJSON(value.notificationLevel), 'Url': value.url, }; }