/* 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 MessageCommand
 */
export interface MessageCommand {
    /**
     * 
     * @type {string}
     * @memberof MessageCommand
     */
    header?: string | null;
    /**
     * 
     * @type {string}
     * @memberof MessageCommand
     */
    text: string;
    /**
     * 
     * @type {number}
     * @memberof MessageCommand
     */
    timeoutMs?: number | null;
}

/**
 * Check if a given object implements the MessageCommand interface.
 */
export function instanceOfMessageCommand(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "text" in value;

    return isInstance;
}

export function MessageCommandFromJSON(json: any): MessageCommand {
    return MessageCommandFromJSONTyped(json, false);
}

export function MessageCommandFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageCommand {
    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 MessageCommandToJSON(value?: MessageCommand | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Header': value.header,
        'Text': value.text,
        'TimeoutMs': value.timeoutMs,
    };
}

