Validator constructor

Validator({
  1. String? operatorAddress,
  2. Any? consensusPubkey,
  3. bool? jailed,
  4. BondStatus? status,
  5. String? tokens,
  6. String? delegatorShares,
  7. Description? description,
  8. Int64? unbondingHeight,
  9. Timestamp? unbondingTime,
  10. Commission? commission,
  11. String? minSelfDelegation,
})

Implementation

factory Validator({
  $core.String? operatorAddress,
  $4.Any? consensusPubkey,
  $core.bool? jailed,
  BondStatus? status,
  $core.String? tokens,
  $core.String? delegatorShares,
  Description? description,
  $fixnum.Int64? unbondingHeight,
  $3.Timestamp? unbondingTime,
  Commission? commission,
  $core.String? minSelfDelegation,
}) {
  final _result = create();
  if (operatorAddress != null) {
    _result.operatorAddress = operatorAddress;
  }
  if (consensusPubkey != null) {
    _result.consensusPubkey = consensusPubkey;
  }
  if (jailed != null) {
    _result.jailed = jailed;
  }
  if (status != null) {
    _result.status = status;
  }
  if (tokens != null) {
    _result.tokens = tokens;
  }
  if (delegatorShares != null) {
    _result.delegatorShares = delegatorShares;
  }
  if (description != null) {
    _result.description = description;
  }
  if (unbondingHeight != null) {
    _result.unbondingHeight = unbondingHeight;
  }
  if (unbondingTime != null) {
    _result.unbondingTime = unbondingTime;
  }
  if (commission != null) {
    _result.commission = commission;
  }
  if (minSelfDelegation != null) {
    _result.minSelfDelegation = minSelfDelegation;
  }
  return _result;
}