toJson method
Implementation
Map<String, dynamic> toJson() {
final comparison = this.comparison;
final thresholdValue = this.thresholdValue;
return {
if (comparison != null) 'Comparison': comparison.toValue(),
if (thresholdValue != null) 'ThresholdValue': thresholdValue,
};
}