toMap method
Converts the configuration object into a map representation.
Useful for sending the configuration to the native platform or for serialization.
Returns a Map with keys and values corresponding to the configuration fields.
Implementation
Map<String, dynamic> toMap() => {
'deviceId': deviceId,
'serverUrl': serverUrl,
'interval': interval,
'distance': distance,
'angle': angle,
'accuracy': accuracy.channelName,
'offlineBuffering': offlineBuffering,
'wakelock': wakelock,
'notificationIcon': notificationIcon,
};