toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => {
      "id": id,
      "name": name,
      "building": building.toJson(),
      "floors": floors.map((i) => i.toJson()).toList(),
      "indoorPOIs": indoorPois.map((i) => i.toJson()).toList(),
      "outdoorPOIs": outdoorPois.map((i) => i.toJson()).toList(),
      "geofences": geofences.map((i) => i.toJson()).toList(),
      "events": events.map((i) => i.toJson()).toList()
    };