toJson method
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,
};
}