toJson method

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

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

Implementation

@override
Map<String, dynamic> toJson() => {
      "id": _id.value,
      "name": _displayName,
      "geometry": _geometry,
      "floorIndex": _floorIndex,
      "aliases": _aliases,
      "entityBounds": bounds,
      "entityIsPoint": false
    };