Exchange.fromJson constructor
Exchange.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Exchange.fromJson(Map<String, dynamic> json) {
return Exchange(
id: json['id'] as String?,
name: json['name'] as String?,
yearEstablished: json['year_established'] as int?,
country: json['country'] as String?,
description: json['description'],
url: json['url'] as String?,
image: json['image'] as String?,
hasTradingIncentive: json['has_trading_incentive'] as bool?,
trustScore: json['trust_score'] as int?,
trustScoreRank: json['trust_score_rank'] as int?,
tradeVolume24hBtc:
StaticHelpers.checkDouble(json['trade_volume_24h_btc'], null),
tradeVolume24hBtcNormalized: StaticHelpers.checkDouble(
json['trade_volume_24h_btc_normalized'], null),
json: json
);
}