toMap method

Map<String, dynamic> toMap()

Implementation

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