Node.fromJson constructor

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

Implementation

factory Node.fromJson(Map<String, dynamic> json) {
  return Node(
    crawlerDetails: json['CrawlerDetails'] != null
        ? CrawlerNodeDetails.fromJson(
            json['CrawlerDetails'] as Map<String, dynamic>)
        : null,
    jobDetails: json['JobDetails'] != null
        ? JobNodeDetails.fromJson(json['JobDetails'] as Map<String, dynamic>)
        : null,
    name: json['Name'] as String?,
    triggerDetails: json['TriggerDetails'] != null
        ? TriggerNodeDetails.fromJson(
            json['TriggerDetails'] as Map<String, dynamic>)
        : null,
    type: (json['Type'] as String?)?.toNodeType(),
    uniqueId: json['UniqueId'] as String?,
  );
}