json2yaml function

String json2yaml(
  1. Map<String, dynamic> json, {
  2. YamlStyle yamlStyle = YamlStyle.generic,
})

Converts JSON to YAML representation

Implementation

String json2yaml(
  Map<String, dynamic> json, {
  YamlStyle yamlStyle = YamlStyle.generic,
}) =>
    _renderToYaml(json, 0, yamlStyle);