toJson method
Implementation
Map<String, dynamic> toJson() {
final condition = this.condition;
final name = this.name;
final value = this.value;
return {
'Condition': condition.toValue(),
'Name': name,
if (value != null) 'Value': value,
};
}