transYaml function

Map<String, dynamic> transYaml (
  1. String yaml
)

Implementation

Map<String, dynamic> transYaml(String yaml) {
  final doc = loadYaml(yaml);
  final data = json.decode(json.encode(doc));

  return data;
}