Class: module:model/Item

module:model/Item(data, links, id, type, theData, obj)

new module:model/Item(data, links, id, type, theData, obj)

Constructs a new Item.

Parameters:
Name Type Description
data module:model/JsonApiResource
links module:model/JsonApiLinks
id String

resource id

type module:model/Item.TypeEnum
theData Object

The plain JavaScript object bearing properties of interest.

obj module:model/Item

Optional instance to populate.

Implements:
Source:

Members

(static) constructFromObject

Constructs a Item 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
items String

value: "items"

Source:

(inner) attributes :module:model/ItemAttributes

Type:
Source:

(inner) data :module:model/JsonApiResource

Type:
Source:

(inner) id :String

resource id

Type:
  • String
Source:

(inner) included :Array.<module:model/JsonApiResource>

Type:
Source:

(inner) jsonapi :module:model/JsonApiVersionJsonapi

Type:
Source:
Type:
Source:

(inner) meta :module:model/JsonApiMeta

Type:
Source:

(inner) relationships :module:model/ItemRelationships

Type:
Source:

(inner) type :module:model/Item.TypeEnum

Type:
Source: