toJson method
Implementation
@override
Object toJson() => {
if (enabled.isNotDefault) 'enabled': enabled,
if (samplingRate.isNotDefault) 'samplingRate': encodeDouble(samplingRate),
if (bigqueryDestination case final bigqueryDestination?)
'bigqueryDestination': bigqueryDestination.toJson(),
if (requestResponseLoggingSchemaVersion.isNotDefault)
'requestResponseLoggingSchemaVersion':
requestResponseLoggingSchemaVersion,
if (enableOtelLogging.isNotDefault) 'enableOtelLogging': enableOtelLogging,
};