fromYaml static method

ZukeConfig fromYaml(
  1. String yamlContent, {
  2. String? root,
})

Parses yamlContent into workspace configuration.

Implementation

static ZukeConfig fromYaml(String yamlContent, {String? root}) {
  try {
    return _fromYaml(yamlContent, root: root);
  } on WorkspaceConfigError {
    rethrow;
  } on Object catch (error) {
    throw InvalidWorkspaceConfigError(error.toString());
  }
}