S3Settings.fromJson constructor
S3Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory S3Settings.fromJson(Map<String, dynamic> json) {
return S3Settings(
bucketFolder: json['BucketFolder'] as String?,
bucketName: json['BucketName'] as String?,
cdcInsertsAndUpdates: json['CdcInsertsAndUpdates'] as bool?,
cdcInsertsOnly: json['CdcInsertsOnly'] as bool?,
cdcPath: json['CdcPath'] as String?,
compressionType:
(json['CompressionType'] as String?)?.toCompressionTypeValue(),
csvDelimiter: json['CsvDelimiter'] as String?,
csvNoSupValue: json['CsvNoSupValue'] as String?,
csvRowDelimiter: json['CsvRowDelimiter'] as String?,
dataFormat: (json['DataFormat'] as String?)?.toDataFormatValue(),
dataPageSize: json['DataPageSize'] as int?,
datePartitionDelimiter: (json['DatePartitionDelimiter'] as String?)
?.toDatePartitionDelimiterValue(),
datePartitionEnabled: json['DatePartitionEnabled'] as bool?,
datePartitionSequence: (json['DatePartitionSequence'] as String?)
?.toDatePartitionSequenceValue(),
dictPageSizeLimit: json['DictPageSizeLimit'] as int?,
enableStatistics: json['EnableStatistics'] as bool?,
encodingType: (json['EncodingType'] as String?)?.toEncodingTypeValue(),
encryptionMode:
(json['EncryptionMode'] as String?)?.toEncryptionModeValue(),
externalTableDefinition: json['ExternalTableDefinition'] as String?,
includeOpForFullLoad: json['IncludeOpForFullLoad'] as bool?,
parquetTimestampInMillisecond:
json['ParquetTimestampInMillisecond'] as bool?,
parquetVersion:
(json['ParquetVersion'] as String?)?.toParquetVersionValue(),
preserveTransactions: json['PreserveTransactions'] as bool?,
rowGroupLength: json['RowGroupLength'] as int?,
serverSideEncryptionKmsKeyId:
json['ServerSideEncryptionKmsKeyId'] as String?,
serviceAccessRoleArn: json['ServiceAccessRoleArn'] as String?,
timestampColumnName: json['TimestampColumnName'] as String?,
useCsvNoSupValue: json['UseCsvNoSupValue'] as bool?,
);
}