parseSearchResults function

List parseSearchResults(
  1. List<JsonMap> results, {
  2. String? resultType,
  3. String? category,
})

Parses search results.

Implementation

List parseSearchResults(
  List<JsonMap> results, {
  String? resultType,
  String? category,
}) {
  return results
      .map(
        (result) =>
            parseSearchResult(result[MRLIR] as JsonMap, resultType, category),
      )
      .toList();
}