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