parsers/search library

Constants

ALL_RESULT_TYPES → const List<String>
API_RESULT_TYPES → const List<String>

Functions

getSearchParams(String? filter, String? scope, bool ignoreSpelling) String?
Get search params for given filter, scope and ignoreSpelling.
getSearchResultType(String? resultTypeLocal, List<String> resultTypesLocal) String?
Get type of the search result.
parseSearchResult(JsonMap data, String? resultType, String? category) JsonMap
Parses a search result from data.
parseSearchResults(List<JsonMap> results, {String? resultType, String? category}) List
Parses search results.
parseSearchSuggestions(JsonMap results, bool detailedRuns) List
Parses search suggestions.
parseTopResult(JsonMap data, List<String> searchResultTypes) JsonMap
Parses the top result from data.