toData
toData(
model:Model,options?:ToDataOptions):unknown
Emit any Model to a plain POJO / array / scalar tree — the supported
observation surface. Keys are YAML keys in canonical order (from the spec),
extras merged after ordered keys, Raw unwrapped to its inner value.
comments: false(default):Commentedwrappers are unwrapped to their values; the returned tree contains no framework wrapper types, so it is safe fortoEqual.comments: true: a node that carries a comment is returned as a CommentNode.
Any model may be passed (step, job, on, …). Unlike toYaml, this does
not run the yaml-backend passes (block-literal promotion, comment spacing)
or postProcess; assert those via the YAML string.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
Returns
Section titled “Returns”unknown