toJson method
Implementation
Map<String, dynamic> toJson() {
final bucketARN = this.bucketARN;
final bufferingHints = this.bufferingHints;
final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
final compressionFormat = this.compressionFormat;
final dataFormatConversionConfiguration =
this.dataFormatConversionConfiguration;
final encryptionConfiguration = this.encryptionConfiguration;
final errorOutputPrefix = this.errorOutputPrefix;
final prefix = this.prefix;
final processingConfiguration = this.processingConfiguration;
final roleARN = this.roleARN;
final s3BackupMode = this.s3BackupMode;
final s3BackupUpdate = this.s3BackupUpdate;
return {
if (bucketARN != null) 'BucketARN': bucketARN,
if (bufferingHints != null) 'BufferingHints': bufferingHints,
if (cloudWatchLoggingOptions != null)
'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
if (compressionFormat != null)
'CompressionFormat': compressionFormat.toValue(),
if (dataFormatConversionConfiguration != null)
'DataFormatConversionConfiguration': dataFormatConversionConfiguration,
if (encryptionConfiguration != null)
'EncryptionConfiguration': encryptionConfiguration,
if (errorOutputPrefix != null) 'ErrorOutputPrefix': errorOutputPrefix,
if (prefix != null) 'Prefix': prefix,
if (processingConfiguration != null)
'ProcessingConfiguration': processingConfiguration,
if (roleARN != null) 'RoleARN': roleARN,
if (s3BackupMode != null) 'S3BackupMode': s3BackupMode.toValue(),
if (s3BackupUpdate != null) 'S3BackupUpdate': s3BackupUpdate,
};
}