fromData static method

Validator fromData(
  1. ValidatorDataArgs data
)

Implementation

static Validator fromData(ValidatorDataArgs data) {
  return Validator(
      data.operator_Address!,
      ValConsKey.fromData(data.consensus_pubkey!),
      data.jailed!,
      data.status!,
      double.parse(data.tokens!),
      double.parse(data.delegator_shares!),
      ValidatorDescription.fromData(data.description!),
      double.parse(data.unbonding_Height!),
      TerraStringExtensions.getISODateTimeFromString(data.unbonding_Time!),
      Commission.fromData(data.commission!),
      double.parse(data.min_Self_Delegation!));
}