/* 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 { TttHistory200ResponsePayloadDataInner } from './TttHistory200ResponsePayloadDataInner';
import {
    TttHistory200ResponsePayloadDataInnerFromJSON,
    TttHistory200ResponsePayloadDataInnerFromJSONTyped,
    TttHistory200ResponsePayloadDataInnerToJSON,
    TttHistory200ResponsePayloadDataInnerToJSONTyped,
} from './TttHistory200ResponsePayloadDataInner';

/**
 * 
 * @export
 * @interface TttHistory200ResponsePayload
 */
export interface TttHistory200ResponsePayload {
    /**
     * 
     * @type {Array<TttHistory200ResponsePayloadDataInner>}
     * @memberof TttHistory200ResponsePayload
     */
    data: Array<TttHistory200ResponsePayloadDataInner>;
}

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

export function TttHistory200ResponsePayloadFromJSON(json: any): TttHistory200ResponsePayload {
    return TttHistory200ResponsePayloadFromJSONTyped(json, false);
}

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

export function TttHistory200ResponsePayloadToJSON(json: any): TttHistory200ResponsePayload {
    return TttHistory200ResponsePayloadToJSONTyped(json, false);
}

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

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

