SearchResponse constructor

const SearchResponse({
  1. int? abTestID,
  2. int? abTestVariantID,
  3. String? aroundLatLng,
  4. String? automaticRadius,
  5. Exhaustive? exhaustive,
  6. List<Object>? appliedRules,
  7. bool? exhaustiveFacetsCount,
  8. bool? exhaustiveNbHits,
  9. bool? exhaustiveTypo,
  10. Map<String, Map<String, int>>? facets,
  11. Map<String, FacetStats>? facetsStats,
  12. String? index,
  13. String? indexUsed,
  14. String? message,
  15. int? nbSortedHits,
  16. String? parsedQuery,
  17. int? processingTimeMS,
  18. Object? processingTimingsMS,
  19. String? queryAfterRemoval,
  20. Redirect? redirect,
  21. RenderingContent? renderingContent,
  22. int? serverTimeMS,
  23. String? serverUsed,
  24. Object? userData,
  25. String? queryID,
  26. bool? automaticInsights,
  27. int? page,
  28. int? nbHits,
  29. int? nbPages,
  30. int? hitsPerPage,
  31. required List<Hit> hits,
  32. required String query,
  33. required String params,
})

Returns a new SearchResponse instance.

Implementation

const SearchResponse({
  this.abTestID,
  this.abTestVariantID,
  this.aroundLatLng,
  this.automaticRadius,
  this.exhaustive,
  this.appliedRules,
  this.exhaustiveFacetsCount,
  this.exhaustiveNbHits,
  this.exhaustiveTypo,
  this.facets,
  this.facetsStats,
  this.index,
  this.indexUsed,
  this.message,
  this.nbSortedHits,
  this.parsedQuery,
  this.processingTimeMS,
  this.processingTimingsMS,
  this.queryAfterRemoval,
  this.redirect,
  this.renderingContent,
  this.serverTimeMS,
  this.serverUsed,
  this.userData,
  this.queryID,
  this.automaticInsights,
  this.page,
  this.nbHits,
  this.nbPages,
  this.hitsPerPage,
  required this.hits,
  required this.query,
  required this.params,
});