toJson method

  1. @override
Map<String, dynamic> toJson()
override

Convert the MarketSellAssetContract object to a JSON representation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "owner_address": ownerAddress.toString(),
    "sell_token_id": BytesUtils.tryToHexString(sellTokenId),
    "sell_token_quantity": sellTokenQuantity?.toString(),
    "buy_token_id": BytesUtils.tryToHexString(buyTokenId),
    "buy_token_quantity": buyTokenQuantity?.toString(),
  };
}