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