ExchangeWithdrawContract.fromJson constructor

ExchangeWithdrawContract.fromJson(
  1. Map<String, dynamic> json
)

Create a new ExchangeWithdrawContract instance by parsing a JSON map.

Implementation

factory ExchangeWithdrawContract.fromJson(Map<String, dynamic> json) {
  return ExchangeWithdrawContract(
    ownerAddress: OnChainUtils.parseTronAddress(
        value: json["owner_address"], name: "owner_address"),
    exchangeId: OnChainUtils.parseBigInt(
        value: json["exchange_id"], name: "exchange_id"),
    tokenId:
        OnChainUtils.parseBytes(value: json["token_id"], name: "token_id"),
    quant: OnChainUtils.parseBigInt(value: json["quant"], name: "quant"),
  );
}