/* 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'; /** * * @export * @interface SendMessageCommandRequest */ export interface SendMessageCommandRequest { /** * * @type {string} * @memberof SendMessageCommandRequest */ header?: string | null; /** * * @type {string} * @memberof SendMessageCommandRequest */ text: string; /** * * @type {number} * @memberof SendMessageCommandRequest */ timeoutMs?: number | null; } /** * Check if a given object implements the SendMessageCommandRequest interface. */ export function instanceOfSendMessageCommandRequest(value: object): boolean { let isInstance = true; isInstance = isInstance && "text" in value; return isInstance; } export function SendMessageCommandRequestFromJSON(json: any): SendMessageCommandRequest { return SendMessageCommandRequestFromJSONTyped(json, false); } export function SendMessageCommandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendMessageCommandRequest { if ((json === undefined) || (json === null)) { return json; } return { 'header': !exists(json, 'Header') ? undefined : json['Header'], 'text': json['Text'], 'timeoutMs': !exists(json, 'TimeoutMs') ? undefined : json['TimeoutMs'], }; } export function SendMessageCommandRequestToJSON(value?: SendMessageCommandRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Header': value.header, 'Text': value.text, 'TimeoutMs': value.timeoutMs, }; }