YamlLayoutGenerator class

Generates YAML output from JSON data using key metadata for layout fidelity.

Uses extracted metadata from parsing to produce byte-for-byte identical output during round-trip conversions. Supports anchors, aliases, comments, flow/block styles, and scalar presentation styles.

Constructors

YamlLayoutGenerator()
Creates a YamlLayoutGenerator instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(Map<String, dynamic> data, {Map<String, dynamic>? keyMeta, Map<String, dynamic>? metaData}) String
Generates YAML from data using key metadata for layout preservation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited