MarketIndex.fromJson constructor
Constructs a MarketIndex instance from a JSON map
json
is a map containing the data to initialize the MarketIndex
Implementation
MarketIndex.fromJson(Map<String, dynamic> json)
: this.name = Convert.toStr(json['name'], ''),
this.market = Convert.toStr(json['market'], ''),
this.last = Convert.toDouble(json['last'], 0),
this.isMultiAssetComposite =
Convert.toBooleanN(json['is_multi_asset_composite']);