GlobalDefiData.fromJson constructor

GlobalDefiData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

GlobalDefiData.fromJson(Map<String, dynamic> json)
    : this.defiMarketCap = Convert.toDouble(json['defi_market_cap'], 0),
      this.ethMarketCap = Convert.toDouble(json['eth_market_cap'], 0),
      this.defiToEthRatio = Convert.toDouble(json['defi_to_eth_ratio'], 0),
      this.tradingVolume24h = Convert.toDouble(json['trading_volume_24h'], 0),
      this.defiDominance = Convert.toDouble(json['defi_dominance'], 0),
      this.topCoinName = Convert.toStrN(json['top_coin_name']),
      this.topCoinDefiDominance =
          Convert.toDouble(json['top_coin_defi_dominance'], 0);