GetValidatorSetByHeightResponse constructor

GetValidatorSetByHeightResponse({
  1. Int64? blockHeight,
  2. Iterable<Validator>? validators,
  3. PageResponse? pagination,
})

Implementation

factory GetValidatorSetByHeightResponse({
  $fixnum.Int64? blockHeight,
  $core.Iterable<Validator>? validators,
  $1.PageResponse? pagination,
}) {
  final _result = create();
  if (blockHeight != null) {
    _result.blockHeight = blockHeight;
  }
  if (validators != null) {
    _result.validators.addAll(validators);
  }
  if (pagination != null) {
    _result.pagination = pagination;
  }
  return _result;
}