/* tslint:disable */
/* eslint-disable */
/**
 * @fastify/swagger
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 9.6.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
import type { PongHistory200ResponsePayloadDataInner } from './PongHistory200ResponsePayloadDataInner';
import {
    PongHistory200ResponsePayloadDataInnerFromJSON,
    PongHistory200ResponsePayloadDataInnerFromJSONTyped,
    PongHistory200ResponsePayloadDataInnerToJSON,
    PongHistory200ResponsePayloadDataInnerToJSONTyped,
} from './PongHistory200ResponsePayloadDataInner';

/**
 * 
 * @export
 * @interface PongHistory200ResponsePayload
 */
export interface PongHistory200ResponsePayload {
    /**
     * 
     * @type {Array<PongHistory200ResponsePayloadDataInner>}
     * @memberof PongHistory200ResponsePayload
     */
    data: Array<PongHistory200ResponsePayloadDataInner>;
}

/**
 * Check if a given object implements the PongHistory200ResponsePayload interface.
 */
export function instanceOfPongHistory200ResponsePayload(value: object): value is PongHistory200ResponsePayload {
    if (!('data' in value) || value['data'] === undefined) return false;
    return true;
}

export function PongHistory200ResponsePayloadFromJSON(json: any): PongHistory200ResponsePayload {
    return PongHistory200ResponsePayloadFromJSONTyped(json, false);
}

export function PongHistory200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PongHistory200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'data': ((json['data'] as Array<any>).map(PongHistory200ResponsePayloadDataInnerFromJSON)),
    };
}

export function PongHistory200ResponsePayloadToJSON(json: any): PongHistory200ResponsePayload {
    return PongHistory200ResponsePayloadToJSONTyped(json, false);
}

export function PongHistory200ResponsePayloadToJSONTyped(value?: PongHistory200ResponsePayload | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'data': ((value['data'] as Array<any>).map(PongHistory200ResponsePayloadDataInnerToJSON)),
    };
}

