fromJSON static method
Validator
fromJSON(
- ValidatorDataArgsJSON data
)
Implementation
static Validator fromJSON(ValidatorDataArgsJSON data) {
return Validator(
data.operator_Address,
ValConsKey.fromJSON(data.consensus_pubkey),
data.jailed,
// data.status,
BondStatus.BondStatusBonded,
//
double.parse(data.tokens),
double.parse(data.delegator_shares),
ValidatorDescription.fromJSON(data.description),
double.parse(data.unbonding_Height),
data.unbonding_Time,
Commission.fromJSON(data.commission),
double.parse(data.min_Self_Delegation));
}