CreateWorkflowCondition.fromJson constructor

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

Implementation

factory CreateWorkflowCondition.fromJson(Map<String, Object?> json) {
  return CreateWorkflowCondition(
    conditions: (json[r'conditions'] as List<Object?>?)
            ?.map((i) => CreateWorkflowCondition.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    configuration: json[r'configuration'] as Map<String, Object?>?,
    operator$: json[r'operator'] != null
        ? CreateWorkflowConditionOperator.fromValue(
            json[r'operator']! as String)
        : null,
    type: json[r'type'] as String?,
  );
}