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

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

export function PongCreatePauseGameRequestFromJSON(json: any): PongCreatePauseGameRequest {
    return PongCreatePauseGameRequestFromJSONTyped(json, false);
}

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

export function PongCreatePauseGameRequestToJSON(json: any): PongCreatePauseGameRequest {
    return PongCreatePauseGameRequestToJSONTyped(json, false);
}

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

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

