TokenBalance.fromJson constructor
Implementation
factory TokenBalance.fromJson(Map<String, dynamic> json) => TokenBalance(
name: json['name'],
symbol: json['symbol'],
chainId: json['chainId'],
address: json['address'],
value: json['value']?.toDouble(),
price: json['price']?.toDouble(),
quantity: json['quantity'] == null
? null
: Quantity.fromJson(json['quantity']),
iconUrl: json['iconUrl'],
);