MPLocation class Null safety

A MapsIndoors geographical entity. A MPLocation can exist anywhere, but it is usually only used inside MPVenues and MPBuildings.

Inheritance

Properties

activeFrom int?
Get the time (epoch) the location is active from
read-only
activeTo int?
Get the time (epoch) the location is active to
read-only
aliases List<String>?
Get a list of aliases for the location
read-only
baseType MPLocationType
Gets the location's MPLocationType baseType
read-only
bounds MPBounds
Get the location's bounds
read-onlyoverride
buildingName String?
Get the name of the MPBuilding the location is in
read-only
categories List<String>?
Get a list of categories the location is contained in
read-only
description String?
Get the location's description
read-only
externalId String
Get the location's external id
read-only
floorIndex int
Get the location's floorIndex
read-only
floorName String?
Get the name of the MPFloor the location is on
read-only
hashCode int
The hash code for this object.
read-onlyoverride
id → MPLocationId
Get the location's id
read-onlyoverride
imageUrl String?
Get the URL for the location's image
read-only
locationId String
Get the location's id value
read-only
name String
Get the location's name
read-only
point MPPoint
Get the location's point
read-only
position MPPoint
Get the location's position, this is usually the location's anchor point
read-onlyoverride
restrictions List<String>?
Get the location's restrictions
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
typeName String?
Get the name of the location's type
read-only
venueName String?
Get the name of the MPVenue the location is in
read-only

Methods

getProperty(MPLocationPropertyNames key) Object?
Fetch a property from the location with a MPLocationPropertyNames key
isBookable() bool
Chech whether this location is bookable, this only checks if the location is allowed to be booked
isPoint() bool
Inherited from MPEntity, checks whether the location's geometry is a MPPoint
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the MPLocation to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic json) MPLocation?
Attempts to build a MPLocation from a JSON object, this method will decode the object if needed