toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the MPVenue to a JSON representation that can be parsed by the MapsIndoors Platform SDK

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "id": id.value,
    "name": administrativeId,
    "graphId": graphId,
    "administrativeId": administrativeId,
    "tilesUrl": tilesUrl,
    "styles": _mapStyles,
    "geometry": geometry,
    "defaultFloor": defaultFloor,
    "venueInfo": venueInfo,
    "anchor": _anchor,
    "entryPoints": _entryPoints,
    "externalId": externalId,
  };
}