toJson method
Converts the MPBounds to a JSON representation that can be parsed by the MapsIndoors Platform SDK
Implementation
@override
Map<String, dynamic> toJson() {
if (Platform.isIOS) {
return {
"northeast": [northeast.longitude, northeast.latitude],
"southwest": [southwest.longitude, southwest.latitude]
};
} else {
return {"northeast": northeast.toJson(), "southwest": southwest.toJson()};
}
}