toJson method
Implementation
Map<String, dynamic> toJson() {
final proposalDurationInHours = this.proposalDurationInHours;
final thresholdComparator = this.thresholdComparator;
final thresholdPercentage = this.thresholdPercentage;
return {
if (proposalDurationInHours != null)
'ProposalDurationInHours': proposalDurationInHours,
if (thresholdComparator != null)
'ThresholdComparator': thresholdComparator.toValue(),
if (thresholdPercentage != null)
'ThresholdPercentage': thresholdPercentage,
};
}