/* 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 { PongCreatePauseGame200ResponsePayload } from './PongCreatePauseGame200ResponsePayload';
import {
    PongCreatePauseGame200ResponsePayloadFromJSON,
    PongCreatePauseGame200ResponsePayloadFromJSONTyped,
    PongCreatePauseGame200ResponsePayloadToJSON,
    PongCreatePauseGame200ResponsePayloadToJSONTyped,
} from './PongCreatePauseGame200ResponsePayload';

/**
 * 
 * @export
 * @interface PongCreatePauseGame200Response
 */
export interface PongCreatePauseGame200Response {
    /**
     * 
     * @type {string}
     * @memberof PongCreatePauseGame200Response
     */
    kind: PongCreatePauseGame200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof PongCreatePauseGame200Response
     */
    msg: PongCreatePauseGame200ResponseMsgEnum;
    /**
     * 
     * @type {PongCreatePauseGame200ResponsePayload}
     * @memberof PongCreatePauseGame200Response
     */
    payload: PongCreatePauseGame200ResponsePayload;
}


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

/**
 * @export
 */
export const PongCreatePauseGame200ResponseMsgEnum = {
    CreatePausedGameSuccess: 'createPausedGame.success'
} as const;
export type PongCreatePauseGame200ResponseMsgEnum = typeof PongCreatePauseGame200ResponseMsgEnum[keyof typeof PongCreatePauseGame200ResponseMsgEnum];


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

export function PongCreatePauseGame200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PongCreatePauseGame200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': PongCreatePauseGame200ResponsePayloadFromJSON(json['payload']),
    };
}

export function PongCreatePauseGame200ResponseToJSON(json: any): PongCreatePauseGame200Response {
    return PongCreatePauseGame200ResponseToJSONTyped(json, false);
}

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

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

