VoteAssetContract.deserialize constructor

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

Implementation

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