toJson method
Converts this instance into a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
if (query != null) 'query': query,
if (from != null) 'from': from,
if (to != null) 'to': to,
if (limit != null) 'limit': limit,
if (offset != null) 'offset': offset,
if (sort != null) 'sort': sort,
};
}