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,
  12. Int64? unbondingOnHoldRefCount,
  13. Iterable<Int64>? unbondingIds,
})

Implementation

factory Validator({
  $core.String? operatorAddress,
  $46.Any? consensusPubkey,
  $core.bool? jailed,
  BondStatus? status,
  $core.String? tokens,
  $core.String? delegatorShares,
  Description? description,
  $fixnum.Int64? unbondingHeight,
  $50.Timestamp? unbondingTime,
  Commission? commission,
  $core.String? minSelfDelegation,
  $fixnum.Int64? unbondingOnHoldRefCount,
  $core.Iterable<$fixnum.Int64>? unbondingIds,
}) {
  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;
  }
  if (unbondingOnHoldRefCount != null) {
    $result.unbondingOnHoldRefCount = unbondingOnHoldRefCount;
  }
  if (unbondingIds != null) {
    $result.unbondingIds.addAll(unbondingIds);
  }
  return $result;
}