/* 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 PongHistory200ResponsePayloadDataInnerLeft
 */
export interface PongHistory200ResponsePayloadDataInnerLeft {
    /**
     * 
     * @type {number}
     * @memberof PongHistory200ResponsePayloadDataInnerLeft
     */
    score: number;
    /**
     * 
     * @type {string}
     * @memberof PongHistory200ResponsePayloadDataInnerLeft
     */
    id: string;
    /**
     * 
     * @type {string}
     * @memberof PongHistory200ResponsePayloadDataInnerLeft
     */
    name: string;
}

/**
 * Check if a given object implements the PongHistory200ResponsePayloadDataInnerLeft interface.
 */
export function instanceOfPongHistory200ResponsePayloadDataInnerLeft(value: object): value is PongHistory200ResponsePayloadDataInnerLeft {
    if (!('score' in value) || value['score'] === undefined) return false;
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    return true;
}

export function PongHistory200ResponsePayloadDataInnerLeftFromJSON(json: any): PongHistory200ResponsePayloadDataInnerLeft {
    return PongHistory200ResponsePayloadDataInnerLeftFromJSONTyped(json, false);
}

export function PongHistory200ResponsePayloadDataInnerLeftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PongHistory200ResponsePayloadDataInnerLeft {
    if (json == null) {
        return json;
    }
    return {
        
        'score': json['score'],
        'id': json['id'],
        'name': json['name'],
    };
}

export function PongHistory200ResponsePayloadDataInnerLeftToJSON(json: any): PongHistory200ResponsePayloadDataInnerLeft {
    return PongHistory200ResponsePayloadDataInnerLeftToJSONTyped(json, false);
}

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

    return {
        
        'score': value['score'],
        'id': value['id'],
        'name': value['name'],
    };
}

