WorkflowCompoundCondition.fromJson constructor

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

Implementation

factory WorkflowCompoundCondition.fromJson(Map<String, Object?> json) {
  return WorkflowCompoundCondition(
    conditions: (json[r'conditions'] as List<Object?>?)
            ?.map((i) => WorkflowCondition.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    nodeType: json[r'nodeType'] as String? ?? '',
    operator$: WorkflowCompoundConditionOperator.fromValue(
        json[r'operator'] as String? ?? ''),
  );
}