Params constructor

Params({
  1. Duration? unbondingTime,
  2. int? maxValidators,
  3. int? maxEntries,
  4. int? historicalEntries,
  5. String? bondDenom,
})

Implementation

factory Params({
  $5.Duration? unbondingTime,
  $core.int? maxValidators,
  $core.int? maxEntries,
  $core.int? historicalEntries,
  $core.String? bondDenom,
}) {
  final _result = create();
  if (unbondingTime != null) {
    _result.unbondingTime = unbondingTime;
  }
  if (maxValidators != null) {
    _result.maxValidators = maxValidators;
  }
  if (maxEntries != null) {
    _result.maxEntries = maxEntries;
  }
  if (historicalEntries != null) {
    _result.historicalEntries = historicalEntries;
  }
  if (bondDenom != null) {
    _result.bondDenom = bondDenom;
  }
  return _result;
}