toJson method

Map<String, dynamic> toJson()

Implementation

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