DataSourceConfig.fromJson constructor

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

Implementation

factory DataSourceConfig.fromJson(Map<String, dynamic> json) {
  return DataSourceConfig(
    name: json['name'] as String,
    s3Bucket: json['s3Bucket'] as String,
    s3Keys: (json['s3Keys'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}