QueryProposalsRequest constructor

QueryProposalsRequest({
  1. ProposalStatus? proposalStatus,
  2. String? voter,
  3. String? depositor,
  4. PageRequest? pagination,
})

Implementation

factory QueryProposalsRequest({
  $6.ProposalStatus? proposalStatus,
  $core.String? voter,
  $core.String? depositor,
  $7.PageRequest? pagination,
}) {
  final _result = create();
  if (proposalStatus != null) {
    _result.proposalStatus = proposalStatus;
  }
  if (voter != null) {
    _result.voter = voter;
  }
  if (depositor != null) {
    _result.depositor = depositor;
  }
  if (pagination != null) {
    _result.pagination = pagination;
  }
  return _result;
}