ValidatorCurrentRewards constructor

ValidatorCurrentRewards({
  1. Iterable<DecCoin>? rewards,
  2. Int64? period,
})

Implementation

factory ValidatorCurrentRewards({
  $core.Iterable<$53.DecCoin>? rewards,
  $fixnum.Int64? period,
}) {
  final $result = create();
  if (rewards != null) {
    $result.rewards.addAll(rewards);
  }
  if (period != null) {
    $result.period = period;
  }
  return $result;
}