toMap method
Implementation
Map<String, dynamic> toMap() => {
if (flushInterval != null) 'flushInterval': flushInterval,
if (batchSize != null) 'batchSize': batchSize,
if (configTTL != null) 'configTTL': configTTL,
if (logLevel != null) 'logLevel': logLevel!.name,
if (billingProvider != null) 'billingProvider': billingProvider!.toJson(),
if (notificationIcon != null) 'notificationIcon': notificationIcon,
if (requireConsent != null) 'requireConsent': requireConsent,
if (vetoTimeout != null) 'vetoTimeout': vetoTimeout,
// `framework` is deliberately NOT sent: the native bridge injects it. Sending
// it is what made it spoofable, and what let a missing key mean "native".
// The wrapper's OWN version so native diagnose() reports it per platform.
'frameworkVersion': kAppDNAFlutterSdkVersion,
};