UnfreezeBalanceContract.deserialize constructor
Implementation
factory UnfreezeBalanceContract.deserialize(List<int> bytes) {
final decode = TronProtocolBufferImpl.decode(bytes);
return UnfreezeBalanceContract(
ownerAddress: TronAddress.fromBytes(decode.getField(1)),
resource: decode
.getResult(10)
?.castTo<ResourceCode, int>((e) => ResourceCode.fromValue(e)),
receiverAddress: TronAddress.fromBytes(decode.getField(15)));
}