toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      if (activityRecognitionInterval != null)
        'activityRecognitionInterval': activityRecognitionInterval,
      if (minimumActivityRecognitionConfidence != null)
        'minimumActivityRecognitionConfidence':
            minimumActivityRecognitionConfidence,
      if (disableStopDetection != null)
        'disableStopDetection': disableStopDetection,
      if (stopOnStationary != null) 'stopOnStationary': stopOnStationary,
      if (motionTriggerDelay != null)
        'motionTriggerDelay': motionTriggerDelay,
      if (triggerActivities != null) 'triggerActivities': triggerActivities,
      if (disableMotionActivityUpdates != null)
        'disableMotionActivityUpdates': disableMotionActivityUpdates,
      if (stopDetectionDelay != null)
        'stopDetectionDelay': stopDetectionDelay,
    };