RedshiftSettings.fromJson constructor

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

Implementation

factory RedshiftSettings.fromJson(Map<String, dynamic> json) {
  return RedshiftSettings(
    acceptAnyDate: json['AcceptAnyDate'] as bool?,
    afterConnectScript: json['AfterConnectScript'] as String?,
    bucketFolder: json['BucketFolder'] as String?,
    bucketName: json['BucketName'] as String?,
    caseSensitiveNames: json['CaseSensitiveNames'] as bool?,
    compUpdate: json['CompUpdate'] as bool?,
    connectionTimeout: json['ConnectionTimeout'] as int?,
    databaseName: json['DatabaseName'] as String?,
    dateFormat: json['DateFormat'] as String?,
    emptyAsNull: json['EmptyAsNull'] as bool?,
    encryptionMode:
        (json['EncryptionMode'] as String?)?.toEncryptionModeValue(),
    explicitIds: json['ExplicitIds'] as bool?,
    fileTransferUploadStreams: json['FileTransferUploadStreams'] as int?,
    loadTimeout: json['LoadTimeout'] as int?,
    maxFileSize: json['MaxFileSize'] as int?,
    password: json['Password'] as String?,
    port: json['Port'] as int?,
    removeQuotes: json['RemoveQuotes'] as bool?,
    replaceChars: json['ReplaceChars'] as String?,
    replaceInvalidChars: json['ReplaceInvalidChars'] as String?,
    secretsManagerAccessRoleArn:
        json['SecretsManagerAccessRoleArn'] as String?,
    secretsManagerSecretId: json['SecretsManagerSecretId'] as String?,
    serverName: json['ServerName'] as String?,
    serverSideEncryptionKmsKeyId:
        json['ServerSideEncryptionKmsKeyId'] as String?,
    serviceAccessRoleArn: json['ServiceAccessRoleArn'] as String?,
    timeFormat: json['TimeFormat'] as String?,
    trimBlanks: json['TrimBlanks'] as bool?,
    truncateColumns: json['TruncateColumns'] as bool?,
    username: json['Username'] as String?,
    writeBufferSize: json['WriteBufferSize'] as int?,
  );
}