fromJson static method

  1. @visibleForTesting
WorkflowResult? fromJson(
  1. dynamic json
)

Implementation

@visibleForTesting
static WorkflowResult? fromJson(json) {
  if (json == null) return null;

  var result = WorkflowResult(
    json["sessionId"],
    WorkflowStep.fromJson(json["finalStep"])!,
  );

  return result;
}