/* 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 { TournamentList200ResponsePayload } from './TournamentList200ResponsePayload';
import {
    TournamentList200ResponsePayloadFromJSON,
    TournamentList200ResponsePayloadFromJSONTyped,
    TournamentList200ResponsePayloadToJSON,
    TournamentList200ResponsePayloadToJSONTyped,
} from './TournamentList200ResponsePayload';

/**
 * 
 * @export
 * @interface TournamentList200Response
 */
export interface TournamentList200Response {
    /**
     * 
     * @type {string}
     * @memberof TournamentList200Response
     */
    kind: TournamentList200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof TournamentList200Response
     */
    msg: TournamentList200ResponseMsgEnum;
    /**
     * 
     * @type {TournamentList200ResponsePayload}
     * @memberof TournamentList200Response
     */
    payload: TournamentList200ResponsePayload;
}


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

/**
 * @export
 */
export const TournamentList200ResponseMsgEnum = {
    TournamentListSuccess: 'tournamentList.success'
} as const;
export type TournamentList200ResponseMsgEnum = typeof TournamentList200ResponseMsgEnum[keyof typeof TournamentList200ResponseMsgEnum];


/**
 * Check if a given object implements the TournamentList200Response interface.
 */
export function instanceOfTournamentList200Response(value: object): value is TournamentList200Response {
    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 TournamentList200ResponseFromJSON(json: any): TournamentList200Response {
    return TournamentList200ResponseFromJSONTyped(json, false);
}

export function TournamentList200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentList200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': TournamentList200ResponsePayloadFromJSON(json['payload']),
    };
}

export function TournamentList200ResponseToJSON(json: any): TournamentList200Response {
    return TournamentList200ResponseToJSONTyped(json, false);
}

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

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

