CrawlerTargets.fromJson constructor
CrawlerTargets.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CrawlerTargets.fromJson(Map<String, dynamic> json) {
return CrawlerTargets(
catalogTargets: (json['CatalogTargets'] as List?)
?.whereNotNull()
.map((e) => CatalogTarget.fromJson(e as Map<String, dynamic>))
.toList(),
dynamoDBTargets: (json['DynamoDBTargets'] as List?)
?.whereNotNull()
.map((e) => DynamoDBTarget.fromJson(e as Map<String, dynamic>))
.toList(),
jdbcTargets: (json['JdbcTargets'] as List?)
?.whereNotNull()
.map((e) => JdbcTarget.fromJson(e as Map<String, dynamic>))
.toList(),
mongoDBTargets: (json['MongoDBTargets'] as List?)
?.whereNotNull()
.map((e) => MongoDBTarget.fromJson(e as Map<String, dynamic>))
.toList(),
s3Targets: (json['S3Targets'] as List?)
?.whereNotNull()
.map((e) => S3Target.fromJson(e as Map<String, dynamic>))
.toList(),
);
}