WitnessCreateContract.deserialize constructor

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

Implementation

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