/* 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 { ExchangeMetric } from './ExchangeMetric'; import { ExchangeMetricFromJSON, ExchangeMetricFromJSONTyped, ExchangeMetricToJSON, } from './ExchangeMetric'; /** * * @export * @interface RespGetExchangeMetrics */ export interface RespGetExchangeMetrics { /** * * @type {number} * @memberof RespGetExchangeMetrics */ code: number; /** * * @type {string} * @memberof RespGetExchangeMetrics */ message?: string; /** * * @type {Array} * @memberof RespGetExchangeMetrics */ metrics: Array; } /** * Check if a given object implements the RespGetExchangeMetrics interface. */ export function instanceOfRespGetExchangeMetrics(value: object): value is RespGetExchangeMetrics { if (!('code' in value) || value['code'] === undefined) return false; if (!('metrics' in value) || value['metrics'] === undefined) return false; return true; } export function RespGetExchangeMetricsFromJSON(json: any): RespGetExchangeMetrics { return RespGetExchangeMetricsFromJSONTyped(json, false); } export function RespGetExchangeMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetExchangeMetrics { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'metrics': ((json['metrics'] as Array).map(ExchangeMetricFromJSON)), }; } export function RespGetExchangeMetricsToJSON(value?: RespGetExchangeMetrics | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'metrics': ((value['metrics'] as Array).map(ExchangeMetricToJSON)), }; }