fromJson static method

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

Implementation

static ParameterAction fromJson(Map<String, dynamic> json) {
  if (json['type'] == 'run_parameter_workflow') {
    return RunParameterWorkflowAction.fromJson(json);
  }
  return RunParameterWorkflowAction(
    id: const Uuid().v1(),
    parameterID: null,
  );
}