toJson method
Converts the MPBuilding to a JSON representation that can be parsed by the MapsIndoors Platform SDK
Implementation
@override
Map<String, dynamic> toJson() {
return {
"id": _id.value,
"administrativeId": _administrativeId,
"externalId": _externalId,
"venueId": _venueId,
"anchor": _anchor,
"buildingInfo": _buildingInfo,
"geometry": _geometry,
"floors": _floors
?.map((key, value) => MapEntry(key.toString(), value.toJson())),
"defaultFloor": _defaultFloor,
"address": _address,
"status": _status
};
}