VoteWitnessContract.deserialize constructor

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

Implementation

factory VoteWitnessContract.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);
  return VoteWitnessContract(
      ownerAddress: TronAddress.fromBytes(decode.getField(1)),
      votes: decode
          .getFields(2)
          .map((e) => VoteWitnessContractVote.deserialize(e))
          .toList(),
      support: decode.getField(3));
}