/* 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 TournamentList200ResponsePayloadDataInner
 */
export interface TournamentList200ResponsePayloadDataInner {
    /**
     * 
     * @type {number}
     * @memberof TournamentList200ResponsePayloadDataInner
     */
    playerCount: number;
    /**
     * 
     * @type {string}
     * @memberof TournamentList200ResponsePayloadDataInner
     */
    id: string;
    /**
     * 
     * @type {string}
     * @memberof TournamentList200ResponsePayloadDataInner
     */
    owner: string;
    /**
     * 
     * @type {string}
     * @memberof TournamentList200ResponsePayloadDataInner
     */
    time: string;
}

/**
 * Check if a given object implements the TournamentList200ResponsePayloadDataInner interface.
 */
export function instanceOfTournamentList200ResponsePayloadDataInner(value: object): value is TournamentList200ResponsePayloadDataInner {
    if (!('playerCount' in value) || value['playerCount'] === undefined) return false;
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('owner' in value) || value['owner'] === undefined) return false;
    if (!('time' in value) || value['time'] === undefined) return false;
    return true;
}

export function TournamentList200ResponsePayloadDataInnerFromJSON(json: any): TournamentList200ResponsePayloadDataInner {
    return TournamentList200ResponsePayloadDataInnerFromJSONTyped(json, false);
}

export function TournamentList200ResponsePayloadDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TournamentList200ResponsePayloadDataInner {
    if (json == null) {
        return json;
    }
    return {
        
        'playerCount': json['playerCount'],
        'id': json['id'],
        'owner': json['owner'],
        'time': json['time'],
    };
}

export function TournamentList200ResponsePayloadDataInnerToJSON(json: any): TournamentList200ResponsePayloadDataInner {
    return TournamentList200ResponsePayloadDataInnerToJSONTyped(json, false);
}

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

    return {
        
        'playerCount': value['playerCount'],
        'id': value['id'],
        'owner': value['owner'],
        'time': value['time'],
    };
}

