Chatbot.fromYaml constructor
Chatbot.fromYaml(
- File yamlFile
Implementation
factory Chatbot.fromYaml(File yamlFile) {
final jsonString = json.encode(loadYaml(yamlFile.readAsStringSync()));
return Chatbot.fromJson(json.decode(jsonString));
}