QueryParamsResponse constructor

QueryParamsResponse({
  1. VotingParams? votingParams,
  2. DepositParams? depositParams,
  3. TallyParams? tallyParams,
})

Implementation

factory QueryParamsResponse({
  $6.VotingParams? votingParams,
  $6.DepositParams? depositParams,
  $6.TallyParams? tallyParams,
}) {
  final _result = create();
  if (votingParams != null) {
    _result.votingParams = votingParams;
  }
  if (depositParams != null) {
    _result.depositParams = depositParams;
  }
  if (tallyParams != null) {
    _result.tallyParams = tallyParams;
  }
  return _result;
}