/* 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 { LiveTvServiceInfo } from './LiveTvServiceInfo'; import { LiveTvServiceInfoFromJSON, LiveTvServiceInfoFromJSONTyped, LiveTvServiceInfoToJSON, } from './LiveTvServiceInfo'; /** * * @export * @interface LiveTvInfo */ export interface LiveTvInfo { /** * Gets or sets the services. * @type {Array} * @memberof LiveTvInfo */ services?: Array; /** * Gets or sets a value indicating whether this instance is enabled. * @type {boolean} * @memberof LiveTvInfo */ isEnabled?: boolean; /** * Gets or sets the enabled users. * @type {Array} * @memberof LiveTvInfo */ enabledUsers?: Array; } /** * Check if a given object implements the LiveTvInfo interface. */ export function instanceOfLiveTvInfo(value: object): boolean { let isInstance = true; return isInstance; } export function LiveTvInfoFromJSON(json: any): LiveTvInfo { return LiveTvInfoFromJSONTyped(json, false); } export function LiveTvInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveTvInfo { if ((json === undefined) || (json === null)) { return json; } return { 'services': !exists(json, 'Services') ? undefined : ((json['Services'] as Array).map(LiveTvServiceInfoFromJSON)), 'isEnabled': !exists(json, 'IsEnabled') ? undefined : json['IsEnabled'], 'enabledUsers': !exists(json, 'EnabledUsers') ? undefined : json['EnabledUsers'], }; } export function LiveTvInfoToJSON(value?: LiveTvInfo | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Services': value.services === undefined ? undefined : ((value.services as Array).map(LiveTvServiceInfoToJSON)), 'IsEnabled': value.isEnabled, 'EnabledUsers': value.enabledUsers, }; }