VoteAccountInfo.fromJson constructor
VoteAccountInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VoteAccountInfo.fromJson(Map<String, dynamic> json) {
return VoteAccountInfo(
votePubkey: SolAddress.uncheckCurve(json["votePubkey"]),
nodePubkey: SolAddress.uncheckCurve(json["nodePubkey"]),
activatedStake: json["activatedStake"],
epochVoteAccount: json["epochVoteAccount"],
epochCredits: (json["epochCredits"] as List)
.map<List<int>>((e) => (e as List).cast())
.toList(),
commission: json["commission"],
lastVote: json["lastVote"]);
}