toMap method

JsonMap toMap()

Converts to a JSON-serializable map.

Implementation

JsonMap toMap() => {
      'minDisplacementMeters': minDisplacementMeters,
      'deferUntilMoved': deferUntilMoved,
      'wakeFromBackground': wakeFromBackground,
      'monitorInForeground': monitorInForeground,
      if (maxUpdateInterval != null)
        'maxUpdateIntervalMs': maxUpdateInterval!.inMilliseconds,
    };