toMap method

Map<String, dynamic> toMap()

Converting a string in the "yaml" format to Map

Implementation

Map<String, dynamic> toMap() {
  var map = <String, dynamic>{};
  nodes.forEach((key, node) {
    map[(key as YamlScalar).value.toString()] = _convertNode(node.value);
  });
  return map;
}