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,
    "graphId": _graphId,
    "administrativeId": _administrativeId,
    "tilesUrl": _tilesUrl,
    "styles": _mapStyles,
    "geometry": _geometry,
    "defaultFloor": _defaultFloor,
    "venueInfo": _venueInfo,
    "anchor": _anchor,
    "entryPoints": _entryPoints,
    "externalId": _externalId,
    "status": _status
  };
}