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