Workflow.fromJson constructor
Workflow.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Workflow.fromJson(Map<String, dynamic> json) {
return Workflow(
createdOn: timeStampFromJson(json['CreatedOn']),
defaultRunProperties:
(json['DefaultRunProperties'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
description: json['Description'] as String?,
graph: json['Graph'] != null
? WorkflowGraph.fromJson(json['Graph'] as Map<String, dynamic>)
: null,
lastModifiedOn: timeStampFromJson(json['LastModifiedOn']),
lastRun: json['LastRun'] != null
? WorkflowRun.fromJson(json['LastRun'] as Map<String, dynamic>)
: null,
maxConcurrentRuns: json['MaxConcurrentRuns'] as int?,
name: json['Name'] as String?,
);
}