toMap method

Map<String, dynamic> toMap()

Converts config to a map for passing to native code

Implementation

Map<String, dynamic> toMap() {
  return {
    'apiBaseUrl': apiBaseUrl,
    'apiEndpoint': apiEndpoint,
    'updateIntervalSeconds': updateIntervalSeconds,
    'distanceFilterMeters': distanceFilterMeters,
    'syncIntervalMinutes': syncIntervalMinutes,
    'maxRetryAttempts': maxRetryAttempts,
    'apiTimeoutSeconds': apiTimeoutSeconds,
    'authToken': authToken,
    'customHeaders': customHeaders,
  };
}