toJson method
Converts the MPPoint to a JSON representation that can be parsed by the MapsIndoors Platform SDK
Implementation
@override
Map<String, dynamic> toJson() {
List<num> coords = [_lng ?? 0.0, _lat ?? 0.0];
if (_floorIndex != null) {
coords.add(_floorIndex!);
}
return {"coordinates": coords, "type": type};
}