toJson method

Map<String, dynamic> toJson()

Implementation

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