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: TronAddress(json["owner_address"]),
    exchangeId: BigintUtils.tryParse(json["exchange_id"]),
    tokenId: BytesUtils.tryFromHexString(json["token_id"]),
    quant: BigintUtils.tryParse(json["quant"]),
  );
}