toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'cdpApiKey': cdpApiKey,
    'migrationSiteId': migrationSiteId,
    'region': region?.name,
    'logLevel': logLevel?.name,
    'autoTrackDeviceAttributes': autoTrackDeviceAttributes,
    'trackApplicationLifecycleEvents': trackApplicationLifecycleEvents,
    'apiHost': apiHost,
    'cdnHost': cdnHost,
    'flushAt': flushAt,
    'flushInterval': flushInterval,
    'screenViewUse': screenViewUse?.name,
    'inApp': inAppConfig?.toMap(),
    'push': pushConfig.toMap(),
    'version': version,
    'source': source
  };
}