toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'instance': instance,
    'collection': collection,
    if (filter != null) 'filter': _filterToJson(filter!),
    if (offset != null) 'offset': offset,
    if (limit != null) 'limit': limit,
    if (sortProperty != null) 'sortProperty': sortProperty,
    'sortAsc': sortAsc,
  };
}