/* 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'; /** * * @export * @interface ReqGetLeaderboard */ export interface ReqGetLeaderboard { /** * * @type {string} * @memberof ReqGetLeaderboard */ type: ReqGetLeaderboardTypeEnum; /** * * @type {string} * @memberof ReqGetLeaderboard */ l1_address?: string; /** * * @type {string} * @memberof ReqGetLeaderboard */ competition_id?: string; /** * * @type {string} * @memberof ReqGetLeaderboard */ auth?: string; } /** * @export */ export const ReqGetLeaderboardTypeEnum = { Weekly: 'weekly', All: 'all', Competition: 'competition' } as const; export type ReqGetLeaderboardTypeEnum = typeof ReqGetLeaderboardTypeEnum[keyof typeof ReqGetLeaderboardTypeEnum]; /** * Check if a given object implements the ReqGetLeaderboard interface. */ export function instanceOfReqGetLeaderboard(value: object): value is ReqGetLeaderboard { if (!('type' in value) || value['type'] === undefined) return false; return true; } export function ReqGetLeaderboardFromJSON(json: any): ReqGetLeaderboard { return ReqGetLeaderboardFromJSONTyped(json, false); } export function ReqGetLeaderboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetLeaderboard { if (json == null) { return json; } return { 'type': json['type'], 'l1_address': json['l1_address'] == null ? undefined : json['l1_address'], 'competition_id': json['competition_id'] == null ? undefined : json['competition_id'], 'auth': json['auth'] == null ? undefined : json['auth'], }; } export function ReqGetLeaderboardToJSON(value?: ReqGetLeaderboard | null): any { if (value == null) { return value; } return { 'type': value['type'], 'l1_address': value['l1_address'], 'competition_id': value['competition_id'], 'auth': value['auth'], }; }