Validator constructor
Validator({
- String? operatorAddress,
- Any? consensusPubkey,
- bool? jailed,
- BondStatus? status,
- String? tokens,
- Description? description,
- Int64? unbondingHeight,
- Timestamp? unbondingTime,
- Commission? commission,
- 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;
}