yamlNodeToDartObject function
Implementation
Object yamlNodeToDartObject(YamlNode? node) {
var object = Object();
if (node is YamlMap) {
object = yamlMapToDartMap(node);
} else if (node is YamlList) {
object = yamlListToDartList(node);
} else if (node is YamlScalar && node.value != null) {
object = yamlScalarToDartObject(node);
}
return object;
}