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

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

export function TournamentData200ResponsePayloadDataUsersInnerFromJSON(json: any): TournamentData200ResponsePayloadDataUsersInner {
    return TournamentData200ResponsePayloadDataUsersInnerFromJSONTyped(json, false);
}

export function TournamentData200ResponsePayloadDataUsersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentData200ResponsePayloadDataUsersInner {
    if (json == null) {
        return json;
    }
    return {
        
        'score': json['score'],
        'id': json['id'],
        'nickname': json['nickname'],
    };
}

export function TournamentData200ResponsePayloadDataUsersInnerToJSON(json: any): TournamentData200ResponsePayloadDataUsersInner {
    return TournamentData200ResponsePayloadDataUsersInnerToJSONTyped(json, false);
}

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

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

