toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'baseUri': baseUri,
'appName': appName,
'appType': appType,
'apiKey': apiKey,
'buildType': buildType,
'serviceName': serviceName ?? appName,
// Lets native stamp the plugin version on the bridged-span resource.
'sdkVersion': pluginVersion,
'globalAttributes': globalAttributes,
'resourceAttributes': resourceAttributes,
'actionWindowMillis': actionWindowDuration.inMilliseconds,
'logLevel': logLevel.name,
};
}