AbstractEntity
Static
create
static create(json = null): AbstractEntity
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | object | Yes | - | |
json.id | null | int | symbol | No | null |
Returns:
Type: AbstractEntity
getName
static getName(): string
Returns:
Type: string
Constructor
constructor
constructor(json = null): AbstractEntity
AbstractEntity is abstract and cannot be instantiated
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
id
Type | Default | Description |
---|---|---|
null | int | symbol | null | The entity identifier |
Methods
toJSON
toJSON(): object
Returns:
Type: object (see properties bellow)
Name | Type | Description |
---|---|---|
id | null | int | symbol |
fromJSON
fromJSON(json: object): AbstractEntity
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | object | Yes | - | |
json.id | null | int | symbol | No | null |
Returns:
Returns this
clone
clone(): AbstractEntity
Returns:
A new deep copy
Type: AbstractEntity