toJson method
Returns a JSON representation of this class.
Implementation
@override
Map<String, dynamic> toJson() {
  return super.toJson()
    ..addAll({
      'pauseLocationUpdatesAutomatically': pauseLocationUpdatesAutomatically,
      'activityType': activityType.index,
      'showBackgroundLocationIndicator': showBackgroundLocationIndicator,
      'allowBackgroundLocationUpdates': allowBackgroundLocationUpdates,
    });
}