/* 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'; /** * * @export * @interface ExchangeMetric */ export interface ExchangeMetric { /** * * @type {number} * @memberof ExchangeMetric */ timestamp: number; /** * * @type {number} * @memberof ExchangeMetric */ data: number; } /** * Check if a given object implements the ExchangeMetric interface. */ export function instanceOfExchangeMetric(value: object): value is ExchangeMetric { if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('data' in value) || value['data'] === undefined) return false; return true; } export function ExchangeMetricFromJSON(json: any): ExchangeMetric { return ExchangeMetricFromJSONTyped(json, false); } export function ExchangeMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeMetric { if (json == null) { return json; } return { 'timestamp': json['timestamp'], 'data': json['data'], }; } export function ExchangeMetricToJSON(value?: ExchangeMetric | null): any { if (value == null) { return value; } return { 'timestamp': value['timestamp'], 'data': value['data'], }; }