/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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'; import type { LeaderboardEntry } from './LeaderboardEntry'; import { LeaderboardEntryFromJSON, LeaderboardEntryFromJSONTyped, LeaderboardEntryToJSON, } from './LeaderboardEntry'; /** * * @export * @interface Leaderboard */ export interface Leaderboard { /** * * @type {Array} * @memberof Leaderboard */ entries: Array; } /** * Check if a given object implements the Leaderboard interface. */ export function instanceOfLeaderboard(value: object): value is Leaderboard { if (!('entries' in value) || value['entries'] === undefined) return false; return true; } export function LeaderboardFromJSON(json: any): Leaderboard { return LeaderboardFromJSONTyped(json, false); } export function LeaderboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Leaderboard { if (json == null) { return json; } return { 'entries': ((json['entries'] as Array).map(LeaderboardEntryFromJSON)), }; } export function LeaderboardToJSON(value?: Leaderboard | null): any { if (value == null) { return value; } return { 'entries': ((value['entries'] as Array).map(LeaderboardEntryToJSON)), }; }