toJson method
Implementation
Map<String, dynamic> toJson() {
final captureOptions = this.captureOptions;
final destinationS3Uri = this.destinationS3Uri;
final initialSamplingPercentage = this.initialSamplingPercentage;
final captureContentTypeHeader = this.captureContentTypeHeader;
final enableCapture = this.enableCapture;
final kmsKeyId = this.kmsKeyId;
return {
'CaptureOptions': captureOptions,
'DestinationS3Uri': destinationS3Uri,
'InitialSamplingPercentage': initialSamplingPercentage,
if (captureContentTypeHeader != null)
'CaptureContentTypeHeader': captureContentTypeHeader,
if (enableCapture != null) 'EnableCapture': enableCapture,
if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
};
}