TransferContract.deserialize constructor

TransferContract.deserialize(
  1. List<int> bytes
)

Implementation

factory TransferContract.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);
  return TransferContract(
      amount: decode.getField(3),
      toAddress: TronAddress.fromBytes(decode.getField(2)),
      ownerAddress: TronAddress.fromBytes(decode.getField(1)));
}