new module:models/Suggestion()
Constructs a new Suggestion
.
Document representing a suggestion.
- Source:
Members
(inner) brands :Array.<String>
The sorted list of suggested brands. This list can be empty.
Type:
- Array.<String>
- Source:
(inner) categories :Array.<module:models/SuggestedCategory>
The sorted list of suggested categories. This list can be empty.
Type:
- Array.<module:models/SuggestedCategory>
- Source:
(inner) content :Array.<module:models/SuggestedContent>
The sorted list of suggested content. This list can be empty.
Type:
- Array.<module:models/SuggestedContent>
- Source:
(inner) custom_suggestions :Array.<String>
The sorted list of suggested custom suggestions. This list can be empty.
Type:
- Array.<String>
- Source:
(inner) products :Array.<module:models/SuggestedProduct>
The sorted list of suggested products. This list can be empty.
Type:
- Array.<module:models/SuggestedProduct>
- Source:
(inner) suggested_phrases :Array.<module:models/SuggestedPhrase>
A list of suggested phrases. This list can be empty.
Type:
- Array.<module:models/SuggestedPhrase>
- Source:
(inner) suggested_terms :Array.<module:models/SuggestedTerms>
A list of suggested terms. This list can be empty.
Type:
- Array.<module:models/SuggestedTerms>
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/Suggestion}
Constructs a Suggestion
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/Suggestion | Optional instance to populate. |
- Source:
Returns:
The populated Suggestion
instance.