/* 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 ReqGetMarketMetrics */ export interface ReqGetMarketMetrics { /** * * @type {number} * @memberof ReqGetMarketMetrics */ timestamp: number; /** * * @type {string} * @memberof ReqGetMarketMetrics */ kind: ReqGetMarketMetricsKindEnum; } /** * @export */ export const ReqGetMarketMetricsKindEnum = { Volume: 'volume' } as const; export type ReqGetMarketMetricsKindEnum = typeof ReqGetMarketMetricsKindEnum[keyof typeof ReqGetMarketMetricsKindEnum]; /** * Check if a given object implements the ReqGetMarketMetrics interface. */ export function instanceOfReqGetMarketMetrics(value: object): value is ReqGetMarketMetrics { if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('kind' in value) || value['kind'] === undefined) return false; return true; } export function ReqGetMarketMetricsFromJSON(json: any): ReqGetMarketMetrics { return ReqGetMarketMetricsFromJSONTyped(json, false); } export function ReqGetMarketMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetMarketMetrics { if (json == null) { return json; } return { 'timestamp': json['timestamp'], 'kind': json['kind'], }; } export function ReqGetMarketMetricsToJSON(value?: ReqGetMarketMetrics | null): any { if (value == null) { return value; } return { 'timestamp': value['timestamp'], 'kind': value['kind'], }; }