map<TOther> method

  1. @override
PaginatedSearchResult<TOther> map<TOther>(
  1. MeilisearchDocumentMapper<T, TOther> mapper
)
override

Implementation

@override
PaginatedSearchResult<TOther> map<TOther>(
  MeilisearchDocumentMapper<T, TOther> mapper,
) {
  return PaginatedSearchResult<TOther>(
    facetStats: facetStats,
    src: src,
    indexUid: indexUid,
    vector: vector,
    facetDistribution: facetDistribution,
    hits: hits.map(mapper).toList(),
    hitsPerPage: hitsPerPage,
    page: page,
    processingTimeMs: processingTimeMs,
    query: query,
    totalHits: totalHits,
    totalPages: totalPages,
  );
}