VoteAssetContract constructor

VoteAssetContract({
  1. String? ownerAddress,
  2. Iterable<String>? voteAddress,
  3. bool? support,
  4. int? count,
})

Implementation

factory VoteAssetContract({
  $core.String? ownerAddress,
  $core.Iterable<$core.String>? voteAddress,
  $core.bool? support,
  $core.int? count,
}) {
  final _result = create();
  if (ownerAddress != null) {
    _result.ownerAddress = ownerAddress;
  }
  if (voteAddress != null) {
    _result.voteAddress.addAll(voteAddress);
  }
  if (support != null) {
    _result.support = support;
  }
  if (count != null) {
    _result.count = count;
  }
  return _result;
}