yamlNodeToDartObject function

Object yamlNodeToDartObject(
  1. YamlNode? node
)

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;
}