QueryVotesResponse constructor

QueryVotesResponse({
  1. Iterable<Vote>? votes,
  2. PageResponse? pagination,
})

Implementation

factory QueryVotesResponse({
  $core.Iterable<$6.Vote>? votes,
  $7.PageResponse? pagination,
}) {
  final _result = create();
  if (votes != null) {
    _result.votes.addAll(votes);
  }
  if (pagination != null) {
    _result.pagination = pagination;
  }
  return _result;
}