MapLight
Extends
MapFile
class MapLight extends MapFile
Static
create
static create(json = null): MapLight
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | object | Yes | - | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: MapLight
getName
static getName(): string
Returns:
Type: constant ("MapLight": string)
Constructor
constructor
constructor(json = null): MapLight
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Overwritten Properties
type
| Type | Default | Description |
|---|---|---|
| enum(MAP_FILE_TYPES) | MAP_FILE_TYPES.LIGHT |
Inherited Properties
created_at
| Type | Default | Description |
|---|---|---|
| Date | null | null |
Read-Only
file
| Type | Default | Description |
|---|---|---|
| Reference<File> | new Reference('File', 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 |
site
| Type | Default | Description |
|---|---|---|
| Reference<Site> | new Reference('Site', null) |
Read-Only
updated_at
| Type | Default | Description |
|---|---|---|
| Date | null | null |
Read-Only
version
| Type | Default | Description |
|---|---|---|
| int | null |
Read-Only
Methods
toJSON
toJSON(): object
Returns:
Type: object (see properties bellow)
| Name | Type | Description |
|---|---|---|
| created_at | string | null | Datetime in ISO 8601 format |
| file | null | int | symbol | |
| id | null | int | symbol | |
| metadata | object | |
| name | string | null | |
| site | null | int | symbol | |
| type | string | null | |
| updated_at | string | null | Datetime in ISO 8601 format |
| version | int | null |
fromJSON
fromJSON(json: object): MapLight
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| json | object | Yes | - | |
| json.created_at | string | null | No | null | Datetime in ISO 8601 format |
| json.file | null | int | symbol | No | null | |
| json.id | null | int | symbol | No | null | |
| json.metadata | object | No | {} | |
| json.name | string | null | No | null | |
| json.site | null | int | symbol | No | null | |
| json.type | string | null | No | 'light' | |
| json.updated_at | string | null | No | null | Datetime in ISO 8601 format |
| json.version | int | null | No | null |
Returns:
Returns this
clone
clone(): MapLight
Returns:
A new deep copy
Type: MapLight
