Exchange.fromJson constructor

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

Implementation

Exchange.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.name = Convert.toStr(json['name'], ''),
      this.yearEstablished = Convert.toInt(json['year_established'], 0),
      this.country = Convert.toStr(json['country'], ''),
      this.description = Convert.toStr(json['description'], ''),
      this.url = Convert.toStr(json['url'], ''),
      this.image = Convert.toStr(json['image'], ''),
      this.hasTradingIncentive =
          Convert.toBoolean(json['has_trading_incentive'], false),
      this.trustScore = Convert.toInt(json['trust_score'], 0),
      this.trustScoreRank = Convert.toInt(json['trust_score_rank'], 0),
      this.tradeVolume24hBtc =
          Convert.toDouble(json['trade_volume_24h_btc'], 0),
      this.tradeVolume24hBtcNormalized =
          Convert.toDouble(json['trade_volume_24h_btc_normalized'], 0);