GlobalCoinData.fromJson constructor
Constructs a GlobalCoinData instance from a JSON map.
json
is a map containing the data to be converted into a GlobalCoinData instance.
Implementation
GlobalCoinData.fromJson(Map<String, dynamic> json)
: this.activeCryptocurrencies =
Convert.toInt(json['active_cryptocurrencies'], 0),
this.upcomingIcos = Convert.toIntN(json['upcoming_icos']),
this.ongoingIcos = Convert.toIntN(json['ongoing_icos']),
this.endedIcos = Convert.toIntN(json['ended_icos']),
this.markets = Convert.toIntN(json['markets']),
this.totalMarketCap =
Convert.toMapOfStringDoubleN(json['total_market_cap']),
this.totalVolume = Convert.toMapOfStringDoubleN(json['total_volume']),
this.marketCapPercentage =
Convert.toMapOfStringDoubleN(json['market_cap_percentage']),
this.marketCapChangePercentage24hUsd =
Convert.toDoubleN(json['market_cap_change_percentage_24h_usd']),
this.updatedAt = Convert.toDateTimeN(json['updated_at']);