toJson method

Map<String, dynamic> toJson()

Implementation

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