fromData static method

Delegation fromData(
  1. DelegationDataArgs data
)

Implementation

static Delegation fromData(DelegationDataArgs data) {
  return Delegation(
      data.delegation!.delegator_Address!,
      data.delegation!.validator_Address!,
      double.parse(data.delegation!.shares!),
      Coin.fromData(data.balance!));
}