toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (enabled.isNotDefault) 'enabled': enabled,
    if (samplingRate.isNotDefault) 'samplingRate': encodeDouble(samplingRate),
    if (bigqueryDestination != null)
      'bigqueryDestination': bigqueryDestination!.toJson(),
    if (requestResponseLoggingSchemaVersion.isNotDefault)
      'requestResponseLoggingSchemaVersion':
          requestResponseLoggingSchemaVersion,
    if (enableOtelLogging.isNotDefault)
      'enableOtelLogging': enableOtelLogging,
  };
}