fromJson static method

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

Implementation

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

  var result = Workflow._(
    json["id"],
    json["name"],
    json["description"],
    json["version"],
    json["defaultLocale"],
  );

  return result;
}