SearchTrendingCoin.fromJson constructor

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

Implementation

SearchTrendingCoin.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.coinId = Convert.toInt(json['coin_id'], 0),
      this.name = Convert.toStr(json['name'], ''),
      this.symbol = Convert.toStr(json['symbol'], ''),
      this.marketCapRank = Convert.toInt(json['market_cap_rank'], 0),
      this.thumb = Convert.toStr(json['thumb'], ''),
      this.small = Convert.toStr(json['small'], ''),
      this.large = Convert.toStr(json['large'], ''),
      this.slug = Convert.toStr(json['slug'], ''),
      this.priceBtc = Convert.toDouble(json['price_btc'], 0),
      this.score = Convert.toInt(json['score'], 0);