toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {};
  _addToMapIfNotNull("buildingIdentifier", buildingIdentifier, map);
  _addToMapIfNotNull("useDeadReckoning", useDeadReckoning, map);
  _addToMapIfNotNull("useForegroundService", useForegroundService, map);
  _addToMapIfNotNull("foregroundServiceNotificationOptions",
      foregroundServiceNotificationOptions?.toMap(), map);
  _addToMapIfNotNull(
      "outdoorLocationOptions", outdoorLocationOptions?.toMap(), map);
  _addToMapIfNotNull(
      "realtimeUpdateInterval", realtimeUpdateInterval?.name, map);
  _addToMapIfNotNull("useWifi", useWifi, map);
  _addToMapIfNotNull("useBle", useBle, map);
  _addToMapIfNotNull("useGps", useGps, map);
  return map;
}