decode method

SpecDocument decode(
  1. String yamlText
)

Decodes a document of this root from its YAML text (tier 1).

Throws SpecYamlFormatException when a key does not fit the model.

Implementation

SpecDocument decode(String yamlText) =>
    SpecDocumentYaml.decode(yamlText, tree).document;