Map<String, dynamic> toMap() { return { 'limit': limit, 'offset': offset, 'sortBy': sortBy?.toMap(), 'search': search, }; }