/* 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 { TournamentData200ResponsePayloadData } from './TournamentData200ResponsePayloadData';
import {
    TournamentData200ResponsePayloadDataFromJSON,
    TournamentData200ResponsePayloadDataFromJSONTyped,
    TournamentData200ResponsePayloadDataToJSON,
    TournamentData200ResponsePayloadDataToJSONTyped,
} from './TournamentData200ResponsePayloadData';

/**
 * 
 * @export
 * @interface TournamentData200ResponsePayload
 */
export interface TournamentData200ResponsePayload {
    /**
     * 
     * @type {TournamentData200ResponsePayloadData}
     * @memberof TournamentData200ResponsePayload
     */
    data: TournamentData200ResponsePayloadData;
}

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

export function TournamentData200ResponsePayloadFromJSON(json: any): TournamentData200ResponsePayload {
    return TournamentData200ResponsePayloadFromJSONTyped(json, false);
}

export function TournamentData200ResponsePayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentData200ResponsePayload {
    if (json == null) {
        return json;
    }
    return {
        
        'data': TournamentData200ResponsePayloadDataFromJSON(json['data']),
    };
}

export function TournamentData200ResponsePayloadToJSON(json: any): TournamentData200ResponsePayload {
    return TournamentData200ResponsePayloadToJSONTyped(json, false);
}

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

    return {
        
        'data': TournamentData200ResponsePayloadDataToJSON(value['data']),
    };
}

