QueryDelegationTotalRewardsResponse constructor

QueryDelegationTotalRewardsResponse({
  1. Iterable<DelegationDelegatorReward>? rewards,
  2. Iterable<DecCoin>? total,
})

Implementation

factory QueryDelegationTotalRewardsResponse({
  $core.Iterable<$3.DelegationDelegatorReward>? rewards,
  $core.Iterable<$2.DecCoin>? total,
}) {
  final _result = create();
  if (rewards != null) {
    _result.rewards.addAll(rewards);
  }
  if (total != null) {
    _result.total.addAll(total);
  }
  return _result;
}