diff --git a/frontend/lib/models/skill_tree/ground.dart b/frontend/lib/models/skill_tree/ground.dart new file mode 100644 index 00000000..2cc61c0d --- /dev/null +++ b/frontend/lib/models/skill_tree/ground.dart @@ -0,0 +1,25 @@ +class Ground { + final String answer; + final List shouldContain; + final List shouldNotContain; + final List files; + final Map eval; + + Ground({ + required this.answer, + required this.shouldContain, + required this.shouldNotContain, + required this.files, + required this.eval, + }); + + factory Ground.fromJson(Map json) { + return Ground( + answer: json['answer'], + shouldContain: List.from(json['should_contain']), + shouldNotContain: List.from(json['should_not_contain']), + files: List.from(json['files']), + eval: json['eval'], + ); + } +}