yamlMapToMap static method
Convert a YAML map to a native (Dart) map.
Implementation
static Map<String, dynamic> yamlMapToMap(YamlMap yaml) {
final json = <String, dynamic>{};
for (final entry in yaml.entries) {
final key = entry.key;
final value = entry.value;
json[key] = _parseValue(value);
}
return json;
}