Delinquent.fromJson constructor
Delinquent.fromJson(
- Map<String, dynamic> json
)
Implementation
Delinquent.fromJson(Map<String, dynamic> json) {
commission = json['commission'];
epochVoteAccount = json['epochVoteAccount'];
if (json['epochCredits'] != null) {
epochCredits = List.generate(0, (index) => <int>[]);
json['epochCredits'].forEach((v) {
final list = <int>[];
v?.forEach((v) {
list.add(v);
});
if (list.length > 0) {
epochCredits!.add(list);
}
});
}
nodePubkey = json['nodePubkey'];
lastVote = json['lastVote'];
activatedStake = json['activatedStake'];
votePubkey = json['votePubkey'];
}