toJson method
Converts the MPSelectionBehavior to a JSON representation that can be parsed by the MapsIndoors Platform SDK
Implementation
@override
Map<String, dynamic> toJson() {
return {
"allowFloorChange": allowFloorChange,
"moveCamera": moveCamera,
"animationDuration": animationDuration,
"showInfoWindow": showInfoWindow,
"zoomToFit": zoomToFit,
// TODO: Must be set to actual value when upgrading to Android SDK > 4.11.0 that has this
"maxZoom": 999
};
}