S3DataSource.fromJson constructor

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

Implementation

factory S3DataSource.fromJson(Map<String, dynamic> json) {
  return S3DataSource(
    s3DataType: (json['S3DataType'] as String).toS3DataType(),
    s3Uri: json['S3Uri'] as String,
    attributeNames: (json['AttributeNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    s3DataDistributionType:
        (json['S3DataDistributionType'] as String?)?.toS3DataDistribution(),
  );
}