RedshiftDestinationDescription.fromJson constructor

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

Implementation

factory RedshiftDestinationDescription.fromJson(Map<String, dynamic> json) {
  return RedshiftDestinationDescription(
    clusterJDBCURL: json['ClusterJDBCURL'] as String,
    copyCommand:
        CopyCommand.fromJson(json['CopyCommand'] as Map<String, dynamic>),
    roleARN: json['RoleARN'] as String,
    s3DestinationDescription: S3DestinationDescription.fromJson(
        json['S3DestinationDescription'] as Map<String, dynamic>),
    username: json['Username'] as String,
    cloudWatchLoggingOptions: json['CloudWatchLoggingOptions'] != null
        ? CloudWatchLoggingOptions.fromJson(
            json['CloudWatchLoggingOptions'] as Map<String, dynamic>)
        : null,
    processingConfiguration: json['ProcessingConfiguration'] != null
        ? ProcessingConfiguration.fromJson(
            json['ProcessingConfiguration'] as Map<String, dynamic>)
        : null,
    retryOptions: json['RetryOptions'] != null
        ? RedshiftRetryOptions.fromJson(
            json['RetryOptions'] as Map<String, dynamic>)
        : null,
    s3BackupDescription: json['S3BackupDescription'] != null
        ? S3DestinationDescription.fromJson(
            json['S3BackupDescription'] as Map<String, dynamic>)
        : null,
    s3BackupMode: (json['S3BackupMode'] as String?)?.toRedshiftS3BackupMode(),
  );
}