toJSON method

  1. @override
Map<String, dynamic> toJSON()
override

Implementation

@override
Map<String, dynamic> toJSON() {
  Map<String, dynamic> json = {};
  if (equal != null) {
    json[FilterField.equal] = equal;
  }
  if (notEqual != null) {
    json[FilterField.notEqual] = notEqual;
  }
  if (inList != null) {
    json[FilterField.inList] = inList;
  }
  if (notInList != null) {
    json[FilterField.notInList] = notInList;
  }
  return json;
}