Converts to a map of query parameters
Map<String, String> get asQueryParameters => {if (isNotEmpty) 'sort': join(',')};