DRepVotingThresholds.fromJson constructor
DRepVotingThresholds.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DRepVotingThresholds.fromJson(Map<String, dynamic> json) {
return DRepVotingThresholds(
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"]),
updateConstitution: UnitInterval.fromJson(json["update_constitution"]),
ppEconomicGroup: UnitInterval.fromJson(json["pp_economic_group"]),
ppGovernanceGroup: UnitInterval.fromJson(json["pp_governance_group"]),
ppNetworkGroup: UnitInterval.fromJson(json["pp_network_group"]),
ppTechnicalGroup: UnitInterval.fromJson(json["pp_technical_group"]),
treasuryWithdrawal: UnitInterval.fromJson(json["treasury_withdrawal"]));
}