WorkflowEdge.fromJson constructor

WorkflowEdge.fromJson(
  1. Map<String, Object?> json
)

Rehydrates an edge from serialized JSON.

Implementation

factory WorkflowEdge.fromJson(Map<String, Object?> json) {
  return WorkflowEdge(
    from: json['from']?.toString() ?? '',
    to: json['to']?.toString() ?? '',
    condition: json['condition']?.toString(),
  );
}