WitnessUpdateContract.deserialize constructor

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

Implementation

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