VoteWitnessContract constructor

VoteWitnessContract({
  1. String? ownerAddress,
  2. Iterable<VoteWitnessContract_Vote>? votes,
  3. bool? support,
})

Implementation

factory VoteWitnessContract({
  $core.String? ownerAddress,
  $core.Iterable<VoteWitnessContract_Vote>? votes,
  $core.bool? support,
}) {
  final _result = create();
  if (ownerAddress != null) {
    _result.ownerAddress = ownerAddress;
  }
  if (votes != null) {
    _result.votes.addAll(votes);
  }
  if (support != null) {
    _result.support = support;
  }
  return _result;
}