VotingPolicy.fromJson constructor

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

Implementation

factory VotingPolicy.fromJson(Map<String, dynamic> json) {
  return VotingPolicy(
    approvalThresholdPolicy: json['ApprovalThresholdPolicy'] != null
        ? ApprovalThresholdPolicy.fromJson(
            json['ApprovalThresholdPolicy'] as Map<String, dynamic>)
        : null,
  );
}