Class: module:model/JsonApiResource

module:model/JsonApiResource(id, type, theData, obj)

new module:model/JsonApiResource(id, type, theData, obj)

Constructs a new JsonApiResource.

Parameters:
Name Type Description
id String

resource id

type String

resource type

theData Object

The plain JavaScript object bearing properties of interest.

obj module:model/JsonApiResource

Optional instance to populate.

Implements:
Source:

Members

(static) constructFromObject

Constructs a JsonApiResource 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:

(inner) attributes :module:model/JsonApiAttributes

Type:
Source:

(inner) id :String

resource id

Type:
  • String
Source:
Type:
Source:

(inner) meta :module:model/JsonApiMeta

Type:
Source:

(inner) relationships :module:model/JsonApiRelationships

Type:
Source:

(inner) type :String

resource type

Type:
  • String
Source: