VoteWitnessContractVote.deserialize constructor

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

Implementation

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