toJson method
Implementation
Map<String, dynamic> toJson() => {
"base": base,
"target": target,
"market": market.toJson(),
"last": last,
"volume": volume,
"converted_last": Map.from(convertedLast)
.map((k, v) => MapEntry<String, dynamic>(k, v)),
"converted_volume": Map.from(convertedVolume)
.map((k, v) => MapEntry<String, dynamic>(k, v)),
"trust_score": trustScore,
"bid_ask_spread_percentage": bidAskSpreadPercentage,
"timestamp": timestamp.toIso8601String(),
"last_traded_at": lastTradedAt.toIso8601String(),
"last_fetch_at": lastFetchAt.toIso8601String(),
"is_anomaly": isAnomaly,
"is_stale": isStale,
"trade_url": tradeUrl == null ? null : tradeUrl,
"coin_id": coinId,
"target_coin_id": targetCoinId,
};