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