/* tslint:disable */ /* eslint-disable */ /** * Nominex TMA API * API config for Nominex TMA * * The version of the OpenAPI document: 0.0.17 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface PointsLeaderboardOwner */ export interface PointsLeaderboardOwner { /** * * @type {number} * @memberof PointsLeaderboardOwner */ balance?: number; /** * * @type {number} * @memberof PointsLeaderboardOwner */ position?: number; /** * * @type {string} * @memberof PointsLeaderboardOwner */ username?: string; } /** * Check if a given object implements the PointsLeaderboardOwner interface. */ export function instanceOfPointsLeaderboardOwner(value: object): boolean { let isInstance = true; return isInstance; } export function PointsLeaderboardOwnerFromJSON(json: any): PointsLeaderboardOwner { return PointsLeaderboardOwnerFromJSONTyped(json, false); } export function PointsLeaderboardOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointsLeaderboardOwner { if ((json === undefined) || (json === null)) { return json; } return { 'balance': !exists(json, 'balance') ? undefined : json['balance'], 'position': !exists(json, 'position') ? undefined : json['position'], 'username': !exists(json, 'username') ? undefined : json['username'], }; } export function PointsLeaderboardOwnerToJSON(value?: PointsLeaderboardOwner | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'balance': value.balance, 'position': value.position, 'username': value.username, }; }