ApprovalThresholdPolicy.fromJson constructor

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

Implementation

factory ApprovalThresholdPolicy.fromJson(Map<String, dynamic> json) {
  return ApprovalThresholdPolicy(
    proposalDurationInHours: json['ProposalDurationInHours'] as int?,
    thresholdComparator:
        (json['ThresholdComparator'] as String?)?.toThresholdComparator(),
    thresholdPercentage: json['ThresholdPercentage'] as int?,
  );
}