MapFile
Extends
AbstractEntity
class MapFile extends AbstractEntity
Specialized Entities
Static
create
static create(json = null): MapFile
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | object | Yes | - | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: MapFile
getName
static getName(): string
Returns:
Type: constant ("MapFile": string)
Constructor
constructor
constructor(json = null): MapFile
MapFile 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
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) |
type
Type | Default | Description |
---|---|---|
enum(MAP_FILE_TYPES) | 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): MapFile
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 | null | |
json.updated_at | string | null | No | null | Datetime in ISO 8601 format |
json.version | int | null | No | null |
Returns:
Returns this
clone
clone(): MapFile
Returns:
A new deep copy
Type: MapFile