DataSource.fromJson constructor

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

Implementation

factory DataSource.fromJson(Map<String, dynamic> json) {
  return DataSource(
    fileSystemDataSource: json['FileSystemDataSource'] != null
        ? FileSystemDataSource.fromJson(
            json['FileSystemDataSource'] as Map<String, dynamic>)
        : null,
    s3DataSource: json['S3DataSource'] != null
        ? S3DataSource.fromJson(json['S3DataSource'] as Map<String, dynamic>)
        : null,
  );
}