/* 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 AssetStats */ export interface AssetStats { /** * * @type {number} * @memberof AssetStats */ asset_id: number; /** * * @type {string} * @memberof AssetStats */ index_price: string; } /** * Check if a given object implements the AssetStats interface. */ export function instanceOfAssetStats(value: object): value is AssetStats { if (!('asset_id' in value) || value['asset_id'] === undefined) return false; if (!('index_price' in value) || value['index_price'] === undefined) return false; return true; } export function AssetStatsFromJSON(json: any): AssetStats { return AssetStatsFromJSONTyped(json, false); } export function AssetStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetStats { if (json == null) { return json; } return { 'asset_id': json['asset_id'], 'index_price': json['index_price'], }; } export function AssetStatsToJSON(value?: AssetStats | null): any { if (value == null) { return value; } return { 'asset_id': value['asset_id'], 'index_price': value['index_price'], }; }