toCodec method
Implementation
Map<String, dynamic> toCodec() {
final Map<String, dynamic> result = <String, dynamic>{};
if (flushEventsIntervalMs != null) {
result['flushEventsIntervalMs'] = flushEventsIntervalMs;
}
if (disableEventLogging != null) {
result['disableEventLogging'] = disableEventLogging;
}
if (disableCustomEventLogging != null) {
result['disableCustomEventLogging'] = disableCustomEventLogging;
}
if (disableAutomaticEventLogging != null) {
result['disableAutomaticEventLogging'] = disableAutomaticEventLogging;
}
if (enableEdgeDB != null) result['enableEdgeDB'] = enableEdgeDB;
if (configCacheTTL != null) result['configCacheTTL'] = configCacheTTL;
if (disableConfigCache != null) {
result['disableConfigCache'] = disableConfigCache;
}
if (disableRealtimeUpdates != null) {
result['disableRealtimeUpdates'] = disableRealtimeUpdates;
}
if (logLevel != null) {
result['logLevel'] = logLevel?.toString().split('.').last;
}
if (apiProxyUrl != null) {
result['apiProxyUrl'] = apiProxyUrl;
}
if (eventsApiProxyUrl != null) {
result['eventsApiProxyUrl'] = eventsApiProxyUrl;
}
return result;
}