Condition.fromJson constructor

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

Implementation

factory Condition.fromJson(Map<String, dynamic> json) {
  return Condition(
    crawlState: (json['CrawlState'] as String?)?.toCrawlState(),
    crawlerName: json['CrawlerName'] as String?,
    jobName: json['JobName'] as String?,
    logicalOperator:
        (json['LogicalOperator'] as String?)?.toLogicalOperator(),
    state: (json['State'] as String?)?.toJobRunState(),
  );
}