/* 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 { TournamentData200ResponsePayload } from './TournamentData200ResponsePayload';
import {
    TournamentData200ResponsePayloadFromJSON,
    TournamentData200ResponsePayloadFromJSONTyped,
    TournamentData200ResponsePayloadToJSON,
    TournamentData200ResponsePayloadToJSONTyped,
} from './TournamentData200ResponsePayload';

/**
 * 
 * @export
 * @interface TournamentData200Response
 */
export interface TournamentData200Response {
    /**
     * 
     * @type {string}
     * @memberof TournamentData200Response
     */
    kind: TournamentData200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof TournamentData200Response
     */
    msg: TournamentData200ResponseMsgEnum;
    /**
     * 
     * @type {TournamentData200ResponsePayload}
     * @memberof TournamentData200Response
     */
    payload: TournamentData200ResponsePayload;
}


/**
 * @export
 */
export const TournamentData200ResponseKindEnum = {
    Success: 'success'
} as const;
export type TournamentData200ResponseKindEnum = typeof TournamentData200ResponseKindEnum[keyof typeof TournamentData200ResponseKindEnum];

/**
 * @export
 */
export const TournamentData200ResponseMsgEnum = {
    TournamentDataSuccess: 'tournamentData.success'
} as const;
export type TournamentData200ResponseMsgEnum = typeof TournamentData200ResponseMsgEnum[keyof typeof TournamentData200ResponseMsgEnum];


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

export function TournamentData200ResponseFromJSON(json: any): TournamentData200Response {
    return TournamentData200ResponseFromJSONTyped(json, false);
}

export function TournamentData200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentData200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': TournamentData200ResponsePayloadFromJSON(json['payload']),
    };
}

export function TournamentData200ResponseToJSON(json: any): TournamentData200Response {
    return TournamentData200ResponseToJSONTyped(json, false);
}

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

    return {
        
        'kind': value['kind'],
        'msg': value['msg'],
        'payload': TournamentData200ResponsePayloadToJSON(value['payload']),
    };
}

