PoolVotingThresholds.fromJson constructor
PoolVotingThresholds.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PoolVotingThresholds.fromJson(Map<String, dynamic> json) {
return PoolVotingThresholds(
motionNoConfidence: UnitInterval.fromJson(json["motion_no_confidence"]),
committeeNormal: UnitInterval.fromJson(json["committee_normal"]),
committeeNoConfidence:
UnitInterval.fromJson(json["committee_no_confidence"]),
hardForkInitiation: UnitInterval.fromJson(json["hard_fork_initiation"]),
securityRelevantThreshold:
UnitInterval.fromJson(json["security_relevant_threshold"]));
}