ExtendedS3DestinationDescription.fromJson constructor

ExtendedS3DestinationDescription.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ExtendedS3DestinationDescription.fromJson(Map<String, dynamic> json) {
  return ExtendedS3DestinationDescription(
    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,
    dataFormatConversionConfiguration:
        json['DataFormatConversionConfiguration'] != null
            ? DataFormatConversionConfiguration.fromJson(
                json['DataFormatConversionConfiguration']
                    as Map<String, dynamic>)
            : null,
    errorOutputPrefix: json['ErrorOutputPrefix'] as String?,
    prefix: json['Prefix'] as String?,
    processingConfiguration: json['ProcessingConfiguration'] != null
        ? ProcessingConfiguration.fromJson(
            json['ProcessingConfiguration'] as Map<String, dynamic>)
        : null,
    s3BackupDescription: json['S3BackupDescription'] != null
        ? S3DestinationDescription.fromJson(
            json['S3BackupDescription'] as Map<String, dynamic>)
        : null,
    s3BackupMode: (json['S3BackupMode'] as String?)?.toS3BackupMode(),
  );
}