ValidatorHistoricalRewardsRecord constructor

ValidatorHistoricalRewardsRecord({
  1. String? validatorAddress,
  2. Int64? period,
  3. ValidatorHistoricalRewards? rewards,
})

Implementation

factory ValidatorHistoricalRewardsRecord({
  $core.String? validatorAddress,
  $fixnum.Int64? period,
  $3.ValidatorHistoricalRewards? rewards,
}) {
  final _result = create();
  if (validatorAddress != null) {
    _result.validatorAddress = validatorAddress;
  }
  if (period != null) {
    _result.period = period;
  }
  if (rewards != null) {
    _result.rewards = rewards;
  }
  return _result;
}