FeatureValue
Extends
AbstractEntity
class FeatureValue extends AbstractEntity
Static
create
static create(json = null): FeatureValue
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: FeatureValue
getName
static getName(): "FeatureValue"
Returns:
Type: constant ("FeatureValue": string)
Constructor
constructor
constructor(json = null): FeatureValue
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
client_id
| Type | Default | Description |
|---|---|---|
| string | null | null |
feature
| Type | Default | Description |
|---|---|---|
| Reference<Feature> | new Reference('Reference', null) |
id
| Type | Default | Description |
|---|---|---|
| null | int | symbol | null | The entity identifier |
metadata
| Type | Default | Description |
|---|---|---|
| Map | new Map() |
name
| Type | Default | Description |
|---|---|---|
| string | null |
products
| Type | Default | Description |
|---|---|---|
| Collection<Product> | new Collection('Product') |
rank
| Type | Default | Description |
|---|---|---|
| int | 0 |
signature
| Type | Default | Description |
|---|---|---|
| string | null | null |
site
| Type | Default | Description |
|---|---|---|
| Reference<Site> | new Reference('Site', null) |
unit
| Type | Default | Description |
|---|---|---|
| string | null | null |
Methods
toJSON
toJSON(): object
Returns:
Type: object (see properties bellow)
| Name | Type | Description |
|---|---|---|
| client_id | string | null | |
| feature | int | symbol | null | |
| id | int | symbol | null | |
| metadata | object | |
| name | string | null | |
| products | Array< int | symbol > | |
| rank | int | |
| signature | string | null | |
| site | int | symbol | null | |
| unit | string | null |
fromJSON
fromJSON(json: object): FeatureValue
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | object | Yes | - | |
| json.client_id | string | null | No | null | |
| json.feature | int | symbol | null | No | null | |
| json.id | int | symbol | null | No | null | |
| json.metadata | object | No | {} | |
| json.name | string | null | No | null | |
| json.products | Array< int | symbol > | No | [] | |
| json.rank | int | No | 0 | |
| json.signature | string | null | No | null | |
| json.site | int | symbol | null | No | null | |
| json.unit | string | null | No | null |
Returns:
Returns this
clone
clone(): FeatureValue
Returns:
A new deep copy
Type: FeatureValue
