toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
'symbol': symbol,
'chainId': chainId,
'address': address,
'value': value,
'price': price,
'quantity': quantity?.toJson(),
'iconUrl': iconUrl,
};