/* 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'; import type { Friend } from './Friend'; import { FriendFromJSON, FriendFromJSONTyped, FriendToJSON, } from './Friend'; /** * * @export * @interface FriendsList */ export interface FriendsList { /** * * @type {number} * @memberof FriendsList */ unclaimed?: number; /** * * @type {Array} * @memberof FriendsList */ friends?: Array; } /** * Check if a given object implements the FriendsList interface. */ export function instanceOfFriendsList(value: object): boolean { let isInstance = true; return isInstance; } export function FriendsListFromJSON(json: any): FriendsList { return FriendsListFromJSONTyped(json, false); } export function FriendsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendsList { if ((json === undefined) || (json === null)) { return json; } return { 'unclaimed': !exists(json, 'unclaimed') ? undefined : json['unclaimed'], 'friends': !exists(json, 'friends') ? undefined : ((json['friends'] as Array).map(FriendFromJSON)), }; } export function FriendsListToJSON(value?: FriendsList | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'unclaimed': value.unclaimed, 'friends': value.friends === undefined ? undefined : ((value.friends as Array).map(FriendToJSON)), }; }