S3DataSourceConfiguration.fromJson constructor
S3DataSourceConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory S3DataSourceConfiguration.fromJson(Map<String, dynamic> json) {
return S3DataSourceConfiguration(
bucketName: json['BucketName'] as String,
accessControlListConfiguration: json['AccessControlListConfiguration'] !=
null
? AccessControlListConfiguration.fromJson(
json['AccessControlListConfiguration'] as Map<String, dynamic>)
: null,
documentsMetadataConfiguration: json['DocumentsMetadataConfiguration'] !=
null
? DocumentsMetadataConfiguration.fromJson(
json['DocumentsMetadataConfiguration'] as Map<String, dynamic>)
: null,
exclusionPatterns: (json['ExclusionPatterns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
inclusionPatterns: (json['InclusionPatterns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
inclusionPrefixes: (json['InclusionPrefixes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}