/* 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';
/**
 * 
 * @export
 * @interface CreatePauseGameRequest
 */
export interface CreatePauseGameRequest {
    /**
     * 
     * @type {string}
     * @memberof CreatePauseGameRequest
     */
    user1: string;
    /**
     * 
     * @type {string}
     * @memberof CreatePauseGameRequest
     */
    user2: string;
}

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

export function CreatePauseGameRequestFromJSON(json: any): CreatePauseGameRequest {
    return CreatePauseGameRequestFromJSONTyped(json, false);
}

export function CreatePauseGameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePauseGameRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'user1': json['user1'],
        'user2': json['user2'],
    };
}

export function CreatePauseGameRequestToJSON(json: any): CreatePauseGameRequest {
    return CreatePauseGameRequestToJSONTyped(json, false);
}

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

    return {
        
        'user1': value['user1'],
        'user2': value['user2'],
    };
}

