toJson method

Map<String, dynamic> toJson()

Convert to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'accuracy': accuracy.index,
    'distanceFilter': distanceFilter,
    'timeInterval': timeInterval,
    'enableBackgroundTracking': enableBackgroundTracking,
    'showBackgroundNotification': showBackgroundNotification,
    'notificationTitle': notificationTitle,
    'notificationText': notificationText,
    'pauseLocationUpdatesAutomatically': pauseLocationUpdatesAutomatically,
    'allowMockLocations': allowMockLocations,
  };
}