/* 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 { Liquidation } from './Liquidation'; import { LiquidationFromJSON, LiquidationFromJSONTyped, LiquidationToJSON, } from './Liquidation'; /** * * @export * @interface LiquidationInfos */ export interface LiquidationInfos { /** * * @type {number} * @memberof LiquidationInfos */ code: number; /** * * @type {string} * @memberof LiquidationInfos */ message?: string; /** * * @type {Array} * @memberof LiquidationInfos */ liquidations: Array; /** * * @type {string} * @memberof LiquidationInfos */ next_cursor?: string; } /** * Check if a given object implements the LiquidationInfos interface. */ export function instanceOfLiquidationInfos(value: object): value is LiquidationInfos { if (!('code' in value) || value['code'] === undefined) return false; if (!('liquidations' in value) || value['liquidations'] === undefined) return false; return true; } export function LiquidationInfosFromJSON(json: any): LiquidationInfos { return LiquidationInfosFromJSONTyped(json, false); } export function LiquidationInfosFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiquidationInfos { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'liquidations': ((json['liquidations'] as Array).map(LiquidationFromJSON)), 'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'], }; } export function LiquidationInfosToJSON(value?: LiquidationInfos | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'liquidations': ((value['liquidations'] as Array).map(LiquidationToJSON)), 'next_cursor': value['next_cursor'], }; }