Class: module:model/Storage

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

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

Constructs a new Storage.

Parameters:
Name Type Description
id String

resource id

type module:model/Storage.TypeEnum
theData Object

The plain JavaScript object bearing properties of interest.

obj module:model/Storage

Optional instance to populate.

Implements:
Source:

Members

(static) constructFromObject

Constructs a Storage 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
objects String

value: "objects"

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/StorageRelationships

Type:
Source:

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

Type:
Source: