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