RewardResponse.fromJson constructor

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

Implementation

factory RewardResponse.fromJson(Map<String, dynamic> json) {
  return RewardResponse(
      pubkey: SolAddress.uncheckCurve(json["pubkey"]),
      lamports: BigintUtils.parse(json["lamports"]),
      postBalance: BigintUtils.tryParse(json["postBalance"]),
      rewardType: json["rewardType"],
      commission: json["commission"]);
}