/* 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';
/**
 * Class PingRequestDto.
 * @export
 * @interface PingRequestDto
 */
export interface PingRequestDto {
    /**
     * Gets or sets the ping time.
     * @type {number}
     * @memberof PingRequestDto
     */
    ping?: number;
}

/**
 * Check if a given object implements the PingRequestDto interface.
 */
export function instanceOfPingRequestDto(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function PingRequestDtoFromJSON(json: any): PingRequestDto {
    return PingRequestDtoFromJSONTyped(json, false);
}

export function PingRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PingRequestDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'ping': !exists(json, 'Ping') ? undefined : json['Ping'],
    };
}

export function PingRequestDtoToJSON(value?: PingRequestDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Ping': value.ping,
    };
}

