/* 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 { CreatePauseGame200ResponsePayload } from './CreatePauseGame200ResponsePayload';
import {
    CreatePauseGame200ResponsePayloadFromJSON,
    CreatePauseGame200ResponsePayloadFromJSONTyped,
    CreatePauseGame200ResponsePayloadToJSON,
    CreatePauseGame200ResponsePayloadToJSONTyped,
} from './CreatePauseGame200ResponsePayload';

/**
 * 
 * @export
 * @interface CreatePauseGame200Response
 */
export interface CreatePauseGame200Response {
    /**
     * 
     * @type {string}
     * @memberof CreatePauseGame200Response
     */
    kind: CreatePauseGame200ResponseKindEnum;
    /**
     * 
     * @type {string}
     * @memberof CreatePauseGame200Response
     */
    msg: CreatePauseGame200ResponseMsgEnum;
    /**
     * 
     * @type {CreatePauseGame200ResponsePayload}
     * @memberof CreatePauseGame200Response
     */
    payload: CreatePauseGame200ResponsePayload;
}


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

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


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

export function CreatePauseGame200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePauseGame200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'kind': json['kind'],
        'msg': json['msg'],
        'payload': CreatePauseGame200ResponsePayloadFromJSON(json['payload']),
    };
}

export function CreatePauseGame200ResponseToJSON(json: any): CreatePauseGame200Response {
    return CreatePauseGame200ResponseToJSONTyped(json, false);
}

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

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

