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