S3DestinationDescription.fromJson constructor
S3DestinationDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory S3DestinationDescription.fromJson(Map<String, dynamic> json) {
return S3DestinationDescription(
bucketARN: json['BucketARN'] as String,
bufferingHints: BufferingHints.fromJson(
json['BufferingHints'] as Map<String, dynamic>),
compressionFormat:
(json['CompressionFormat'] as String).toCompressionFormat(),
encryptionConfiguration: EncryptionConfiguration.fromJson(
json['EncryptionConfiguration'] as Map<String, dynamic>),
roleARN: json['RoleARN'] as String,
cloudWatchLoggingOptions: json['CloudWatchLoggingOptions'] != null
? CloudWatchLoggingOptions.fromJson(
json['CloudWatchLoggingOptions'] as Map<String, dynamic>)
: null,
errorOutputPrefix: json['ErrorOutputPrefix'] as String?,
prefix: json['Prefix'] as String?,
);
}