ExchangeExtended.fromJson constructor
Constructs an ExchangeExtended object from JSON data
json
- The JSON data to parse
Implementation
ExchangeExtended.fromJson(Map<String, dynamic> json)
: 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.facebookUrl = Convert.toStr(json['facebook_url'], ''),
this.redditUrl = Convert.toStr(json['reddit_url'], ''),
this.telegramUrl = Convert.toStr(json['telegram_url'], ''),
this.slackUrl = Convert.toStr(json['slack_url'], ''),
this.otherUrl1 = Convert.toStr(json['other_url_1'], ''),
this.otherUrl2 = Convert.toStr(json['other_url_2'], ''),
this.twitterHandle = Convert.toStr(json['twitter_handle'], ''),
this.hasTradingIncentive =
Convert.toBoolean(json['has_trading_incentive'], false),
this.centralized = Convert.toBoolean(json['centralized'], false),
this.publicNotice = Convert.toStr(json['public_notice'], ''),
this.alertNotice = Convert.toStr(json['alert_notice'], ''),
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),
this.tickers = _parseTickers(json['tickers']),
this.statusUpdates = _parseStatusUpdates(json['status_updates']);