toJson method
Converts the MPMapConfig to a JSON representation that can be parsed by the MapsIndoors Platform SDK
Implementation
@override
Map<String, dynamic> toJson() {
final map = {
"typeface": _typeface,
"color": _color,
"showHalo": _showHalo,
"textSize": _textSize,
"showFloorSelector": _showFloorSelector,
"showInfoWindowOnLocationClicked": _showInfoWindowOnClick,
"showUserPosition": _showUserPosition,
"useDefaultMapsIndoorsStyle": _useDefaultMapsIndoorsStyle,
"tileFadeInEnabled": _enabletileFadeIn
};
map.removeWhere((_, value) => value == null);
return map;
}