BatchGetCrawlersResponse.fromJson constructor

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

Implementation

factory BatchGetCrawlersResponse.fromJson(Map<String, dynamic> json) {
  return BatchGetCrawlersResponse(
    crawlers: (json['Crawlers'] as List?)
        ?.whereNotNull()
        .map((e) => Crawler.fromJson(e as Map<String, dynamic>))
        .toList(),
    crawlersNotFound: (json['CrawlersNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}