new module:model/Hub(data, links, id, type, theData, obj)
Constructs a new Hub.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
module:model/JsonApiResource | |
links |
module:model/JsonApiLinks | |
id |
String | resource id |
type |
module:model/Hub.TypeEnum | |
theData |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:model/Hub | Optional instance to populate. |
- Implements:
- Source:
Members
(static) constructFromObject
Constructs a Hub 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.
- Source:
(static, readonly) TypeEnum :String
Allowed values for the type property.
Type:
- String
Properties:
| Name | Type | Description |
|---|---|---|
hubs |
String | value: "hubs" |
- Source:
(inner) attributes :module:model/HubAttributes
Type:
- Source:
(inner) data :module:model/JsonApiResource
Type:
- Source:
(inner) id :String
resource id
Type:
- String
- Source:
(inner) included :Array.<module:model/JsonApiResource>
Type:
- Array.<module:model/JsonApiResource>
- Source:
(inner) jsonapi :module:model/JsonApiVersionJsonapi
Type:
- Source:
(inner) links :module:model/JsonApiLinks
Type:
- Source:
(inner) meta :module:model/JsonApiMeta
Type:
- Source:
(inner) relationships :module:model/HubRelationships
Type:
- Source:
(inner) type :module:model/Hub.TypeEnum
Type:
- Source: