DelegatedStake.fromJson constructor

DelegatedStake.fromJson(
  1. Map<String, dynamic> json
)

Implementation

DelegatedStake.fromJson(Map<String, dynamic> json) {
  validatorAddress = json['validatorAddress'];
  stakingPool = json['stakingPool'];
  stakes =
      List.from(json['stakes']).map((e) => StakeObject.fromJson(e)).toList();
}