TransferContract.fromJson constructor

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

Create a new TransferContract instance by parsing a JSON map.

Implementation

factory TransferContract.fromJson(Map<String, dynamic> json) {
  return TransferContract(
    amount: BigintUtils.parse(json['amount']),
    ownerAddress: TronAddress(json['owner_address']),
    toAddress: TronAddress(json['to_address']),
  );
}