toMap method

Map<String, dynamic> toMap()

Converts the options to a Map for communication over platform channels.

Implementation

Map<String, dynamic> toMap() {
  final map = {
    'privateKeyWoosmapAPI': privateKeyWoosmapAPI,
    'trackingProfile': trackingProfile,
    'enableAirshipConnector': enableAirshipConnector,
    'protectedRegionSlot': protectedRegionSlot,
    'androidNotificationText': androidNotificationText,
    'androidNotificationTitle': androidNotificationTitle,
    'androidNotificationIconName': androidNotificationIconName,
    'androidNotificationIconUrl': androidNotificationIconUrl,
  };

  // Remove keys with null values
  map.removeWhere((key, value) => value == null);
  return map;
}