Extends
Poi
class Store extends Poi
Static
create
static create(json = null): Store
Parameters:
Name | Type | Required | Default | Description |
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: Store
getName
static getName(): string
Returns:
Type: constant ("Store": string)
Constructor
constructor
constructor(json = null): Store
Parameters:
Name | Type | Required | Default | Description |
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
opening_time
Type | Default | Description |
string | null | null | |
phone
Type | Default | Description |
string | null | null | |
priority
Type | Default | Description |
int | 0 | |
url
Type | Default | Description |
string | null | null | |
Overwritten Properties
type
Read-Only
Inherited Properties
categories
children
client_id
Type | Default | Description |
string | null | null | |
created_at
Type | Default | Description |
Date | null | null | |
Read-Only
custom_objects
description
Type | Default | Description |
string | null | null | |
id
Type | Default | Description |
null | int | symbol | null | The entity identifier |
logos
medias
metadata
Type | Default | Description |
Map | new Map() | |
name
Type | Default | Description |
string | null | |
new
Type | Default | Description |
boolean | true | |
parents
pictures
places
signature
Type | Default | Description |
string | null | null | |
site
Type | Default | Description |
Reference<Site> | new Reference('Site', null) | |
tags
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 |
categories | Array<int | symbol> | |
children | Array<{id: int | symbol, position: int}> | |
client_id | string | null | |
created_at | string | null | Datetime in ISO 8601 format |
custom_objects | Array<int | symbol> | |
description | null | string | |
id | null | int | symbol | |
logos | Array<{id: int | symbol, position: int}> | |
medias | Array<{id: int | symbol, position: int}> | |
metadata | object | |
name | string | null | |
new | boolean | |
parents | Array<int | symbol> | |
pictures | Array<{id: int | symbol, position: int}> | |
places | Array<int | symbol> | |
signature | string | null | |
site | null | int | symbol | |
tags | Array<int | symbol> | |
type | string | null | |
updated_at | string | null | Datetime in ISO 8601 format |
version | int | null | |
opening_time | null | string | |
phone | null | string | |
priority | int | |
url | null | string | |
fromJSON
fromJSON(json: object): Store
Parameters:
Name | Type | Required | Default | Description |
json | object | Yes | - | |
json.categories | Array<int | symbol> | No | [] | |
json.children | Array<{id: int | symbol, position: int}> | No | [] | |
json.client_id | string | null | No | null | |
json.created_at | string | null | No | null | Datetime in ISO 8601 format |
json.custom_objects | Array<int | symbol> | No | [] | |
json.description | null | string | No | null | |
json.id | null | int | symbol | No | null | |
json.logos | Array<{id: int | symbol, position: int}> | No | [] | |
json.medias | Array<{id: int | symbol, position: int}> | No | [] | |
json.metadata | object | No | {} | |
json.name | string | null | No | null | |
json.new | boolean | No | true | |
json.parents | Array<int | symbol> | No | [] | |
json.pictures | Array<{id: int | symbol, position: int}> | No | [] | |
json.places | Array<int | symbol> | No | [] | |
json.signature | string | null | No | null | |
json.site | null | int | symbol | No | null | |
json.tags | Array<int | symbol> | No | [] | |
json.type | string | null | No | 'store' | |
json.updated_at | string | null | No | null | Datetime in ISO 8601 format |
json.version | int | null | No | null | | json.phone | null | string | No | null | |
json.opening_time | null | string | No | null | |
json.phone | null | string | No | null | |
json.priority | int | No | 0 | |
json.url | null | string | No | null | |
Returns:
Returns this
clone
clone(): Store
Returns:
A new deep copy
Type: Store