new module:models/CustomObject()
Constructs a new CustomObject
.
Document representing a custom object that contains all defined custom attributes for its object type.
- Source:
Members
(inner) key_property :String
The name of the key property for the custom object.
Type:
- String
- Source:
(inner) key_value_integer :Number
The id of the custom object when the type of the key is Integer.
Type:
- Number
- Source:
(inner) key_value_string :String
The id of the custom object when the type of the key is String.
Type:
- String
- Source:
(inner) object_type :String
The id of the object type.
Type:
- String
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/CustomObject}
Constructs a CustomObject
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/CustomObject | Optional instance to populate. |
- Source:
Returns:
The populated CustomObject
instance.