BrowseResponse constructor

const BrowseResponse({
  1. int? abTestID,
  2. int? abTestVariantID,
  3. String? aroundLatLng,
  4. String? automaticRadius,
  5. bool? exhaustiveFacetsCount,
  6. bool? exhaustiveNbHits,
  7. bool? exhaustiveTypo,
  8. Map<String, Map<String, int>>? facets,
  9. Map<String, FacetsStats>? facetsStats,
  10. required int hitsPerPage,
  11. String? index,
  12. String? indexUsed,
  13. String? message,
  14. required int nbHits,
  15. required int nbPages,
  16. int? nbSortedHits,
  17. required int page,
  18. BaseSearchResponseRedirect? redirect,
  19. String? parsedQuery,
  20. required int processingTimeMS,
  21. String? queryAfterRemoval,
  22. String? serverUsed,
  23. Object? userData,
  24. RenderingContent? renderingContent,
  25. required List<Hit> hits,
  26. required String query,
  27. required String params,
  28. String? cursor,
})

Returns a new BrowseResponse instance.

Implementation

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