new module:models/PromotionResult()
Constructs a new PromotionResult.
Result document containing an array of promotions.
- Source:
 
Members
(inner) count :Number
The number of returned documents.
Type:
- Number
 
- Source:
 
(inner) data :Array.<module:models/Promotion>
The array of promotion documents.
Type:
- Array.<module:models/Promotion>
 
- Source:
 
(inner) total :Number
The total number of documents.
Type:
- Number
 
- Source:
 
Methods
(static) constructFromObject(data, obj) → {module:models/PromotionResult}
Constructs a PromotionResult 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/PromotionResult | Optional instance to populate.  | 
        
- Source:
 
Returns:
The populated PromotionResult instance.