toMap method

Map<String, dynamic> toMap()

Converts the configuration to a map

Implementation

Map<String, dynamic> toMap() {
  return {
    'apiKey': apiKey,
    'baseUrl': baseUrl,
    'debug': debug,
    'persistLastLinkData': persistLastLinkData,
    'lastLinkTimeToLive': lastLinkTimeToLive?.inMilliseconds, // Serialize Duration to milliseconds
    'clearLastLinkOnRead': clearLastLinkOnRead,
    'redactAllParametersInLastLink': redactAllParametersInLastLink,
    'redactedParameterKeysInLastLink': redactedParameterKeysInLastLink,
    'enableDeepLinkIntegration': enableDeepLinkIntegration,
    'enableAutomaticAppDelegateIntegration': enableAutomaticAppDelegateIntegration,
    'enableAnalytics': enableAnalytics,
    'enableCrashReporting': enableCrashReporting,
    'timeout': timeout,
    'retryCount': retryCount,
    'metadata': metadata,
    'autoCheckDeferredLink': autoCheckDeferredLink,
  };
}