fromSearchProductsResponse static method
- required ZincSearchResponse response,
Implementation
static List<ProductEntity> fromSearchProductsResponse({
required ZincSearchResponse response,
}) =>
response.responses?.first.hits?.hits
?.map(
(Hit hit) => ProductMapper.fromSearchResponse(source: hit.source),
)
.toList() ??
<ProductEntity>[];