CoinSearchResults.fromJson constructor

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

Implementation

CoinSearchResults.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.name = Convert.toStr(json['name'], ''),
      this.apiSymbol = Convert.toStr(json['api_symbol'], ''),
      this.symbol = Convert.toStr(json['symbol'], ''),
      this.marketCapRank = Convert.toInt(json['market_cap_rank'], 0),
      this.thumb = Convert.toStr(json['thumb'], ''),
      this.large = Convert.toStr(json['large'], '');