add update
This commit is contained in:
parent
1ff068902d
commit
5ffa7c3706
1 changed files with 1 additions and 5 deletions
|
|
@ -68,11 +68,7 @@ Map<String, dynamic>? getMapFromJson(String jsonStr) {
|
|||
Map<String, dynamic>? getMapFromYaml(String yamlStr) {
|
||||
Map<String, dynamic>? map;
|
||||
if (yamlStr.length > 5) {
|
||||
try {
|
||||
map = jsonDecode(jsonEncode(loadYaml(yamlStr)));
|
||||
} catch (e) {
|
||||
print("Error: $e");
|
||||
}
|
||||
map = jsonDecode(jsonEncode(loadYaml(yamlStr)));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue