MapPath
Extends
MapFile
class MapPath extends MapFile
Static
create
static create(json = null): MapPath
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | object | Yes | - | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: MapPath
getName
static getName(): string
Returns:
Type: constant ("MapPath": string)
Constructor
constructor
constructor(json = null): MapPath
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
paths
Type | Default | Description |
---|---|---|
Map | new Map() | This contains the PathNetwork, don't try to edit it or do it at your own risks |
Overwritten Properties
type
Type | Default | Description |
---|---|---|
enum(MAP_FILE_TYPES) | MAP_FILE_TYPES.PATH |
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 | |
path | object |
fromJSON
fromJSON(json: object): MapPath
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 | 'path' | |
json.updated_at | string | null | No | null | Datetime in ISO 8601 format |
json.version | int | null | No | null | |
json.path | object | No | {} |
Returns:
Returns this
clone
clone(): MapPath
Returns:
A new deep copy
Type: MapPath