responseFields property

  1. @JsonKey(name: r'responseFields')
List<String>? responseFields
final

Properties to include in the API response of search and browse requests. By default, all response properties are included. To reduce the response size, you can select which properties should be included. An empty list may lead to an empty API response (except properties you can't exclude). You can't exclude these properties: message, warning, cursor, abTestVariantID, or any property added by setting getRankingInfo to true. Your search depends on the hits field. If you omit this field, searches won't return any results. Your UI might also depend on other properties, for example, for pagination. Before restricting the response size, check the impact on your search experience.

Implementation

@JsonKey(name: r'responseFields')
final List<String>? responseFields;