new module:models/OptionValue(id)
Constructs a new OptionValue
.
Document representing an option value.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | The id of the option value. |
- Source:
Members
(inner) default :Boolean
A flag indicating whether this option value is the default one.
Type:
- Boolean
- Source:
(inner) id :String
The id of the option value.
Type:
- String
- Source:
(inner) name :String
The localized name of the option value.
Type:
- String
- Source:
(inner) price :Number
The effective price of this option value.
Type:
- Number
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/OptionValue}
Constructs a OptionValue
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/OptionValue | Optional instance to populate. |
- Source:
Returns:
The populated OptionValue
instance.