json2yaml function
Converts JSON to YAML representation
Implementation
String json2yaml(
Map<String, dynamic> json, {
YamlStyle yamlStyle = YamlStyle.generic,
}) =>
_separatePubspecYamlSections(
_condense(_formatObject(
value: json,
context: _Context(
yamlStyle: yamlStyle,
nesting: 0,
))),
yamlStyle,
);