/* 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 Friend */ export interface Friend { /** * * @type {string} * @memberof Friend */ username?: string; /** * * @type {number} * @memberof Friend */ balance?: number; /** * * @type {number} * @memberof Friend */ referralCount?: number; } /** * Check if a given object implements the Friend interface. */ export function instanceOfFriend(value: object): boolean { let isInstance = true; return isInstance; } export function FriendFromJSON(json: any): Friend { return FriendFromJSONTyped(json, false); } export function FriendFromJSONTyped(json: any, ignoreDiscriminator: boolean): Friend { if ((json === undefined) || (json === null)) { return json; } return { 'username': !exists(json, 'username') ? undefined : json['username'], 'balance': !exists(json, 'balance') ? undefined : json['balance'], 'referralCount': !exists(json, 'referralCount') ? undefined : json['referralCount'], }; } export function FriendToJSON(value?: Friend | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'username': value.username, 'balance': value.balance, 'referralCount': value.referralCount, }; }