toJSON method
Implementation
@override
toJSON() {
final Map<String, dynamic> json = {};
json["skip"] = skip;
json["take"] = take;
if (orderBy != null) {
json["orderBy"] = orderBy;
}
if (orderType != null) {
json["orderType"] = orderType;
}
if (search != null) {
json["search"] = search;
}
for (final field in fields) {
json[field.name] = field.toJSON();
}
return json;
}