toJSON method
Convert this DateFilter to JSON
Implementation
@override
Map<String, dynamic> toJSON() {
Map<String, dynamic> json = {};
if (equal != null) {
json[FilterField.equal] = equal!.toIso8601String();
}
if (notEqual != null) {
json[FilterField.notEqual] = notEqual!.toIso8601String();
}
if (greaterEqual != null) {
json[FilterField.greaterEqual] = greaterEqual!.toIso8601String();
}
if (greater != null) {
json[FilterField.greater] = greater!.toIso8601String();
}
if (lessEqual != null) {
json[FilterField.lessEqual] = lessEqual!.toIso8601String();
}
if (less != null) {
json[FilterField.less] = less!.toIso8601String();
}
return json;
}