/* 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 { TournamentList200ResponsePayloadDataInner } from './TournamentList200ResponsePayloadDataInner';
import {
    TournamentList200ResponsePayloadDataInnerFromJSON,
    TournamentList200ResponsePayloadDataInnerFromJSONTyped,
    TournamentList200ResponsePayloadDataInnerToJSON,
    TournamentList200ResponsePayloadDataInnerToJSONTyped,
} from './TournamentList200ResponsePayloadDataInner';

/**
 * 
 * @export
 * @interface TournamentList200ResponsePayload
 */
export interface TournamentList200ResponsePayload {
    /**
     * 
     * @type {Array<TournamentList200ResponsePayloadDataInner>}
     * @memberof TournamentList200ResponsePayload
     */
    data: Array<TournamentList200ResponsePayloadDataInner>;
}

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

export function TournamentList200ResponsePayloadFromJSON(json: any): TournamentList200ResponsePayload {
    return TournamentList200ResponsePayloadFromJSONTyped(json, false);
}

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

export function TournamentList200ResponsePayloadToJSON(json: any): TournamentList200ResponsePayload {
    return TournamentList200ResponsePayloadToJSONTyped(json, false);
}

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

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

