/* 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 TradeStats */ export interface TradeStats { /** * * @type {number} * @memberof TradeStats */ count: number; /** * * @type {string} * @memberof TradeStats */ volume: string; /** * * @type {number} * @memberof TradeStats */ web_count: number; /** * * @type {string} * @memberof TradeStats */ web_volume: string; /** * * @type {number} * @memberof TradeStats */ mobile_app_count: number; /** * * @type {string} * @memberof TradeStats */ mobile_app_volume: string; /** * * @type {number} * @memberof TradeStats */ mobile_browser_count: number; /** * * @type {string} * @memberof TradeStats */ mobile_browser_volume: string; } /** * Check if a given object implements the TradeStats interface. */ export function instanceOfTradeStats(value: object): value is TradeStats { if (!('count' in value) || value['count'] === undefined) return false; if (!('volume' in value) || value['volume'] === undefined) return false; if (!('web_count' in value) || value['web_count'] === undefined) return false; if (!('web_volume' in value) || value['web_volume'] === undefined) return false; if (!('mobile_app_count' in value) || value['mobile_app_count'] === undefined) return false; if (!('mobile_app_volume' in value) || value['mobile_app_volume'] === undefined) return false; if (!('mobile_browser_count' in value) || value['mobile_browser_count'] === undefined) return false; if (!('mobile_browser_volume' in value) || value['mobile_browser_volume'] === undefined) return false; return true; } export function TradeStatsFromJSON(json: any): TradeStats { return TradeStatsFromJSONTyped(json, false); } export function TradeStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStats { if (json == null) { return json; } return { 'count': json['count'], 'volume': json['volume'], 'web_count': json['web_count'], 'web_volume': json['web_volume'], 'mobile_app_count': json['mobile_app_count'], 'mobile_app_volume': json['mobile_app_volume'], 'mobile_browser_count': json['mobile_browser_count'], 'mobile_browser_volume': json['mobile_browser_volume'], }; } export function TradeStatsToJSON(value?: TradeStats | null): any { if (value == null) { return value; } return { 'count': value['count'], 'volume': value['volume'], 'web_count': value['web_count'], 'web_volume': value['web_volume'], 'mobile_app_count': value['mobile_app_count'], 'mobile_app_volume': value['mobile_app_volume'], 'mobile_browser_count': value['mobile_browser_count'], 'mobile_browser_volume': value['mobile_browser_volume'], }; }