Files
AutoGPT/classic/frontend/lib/models/skill_tree/skill_node_data.dart
Swifty ef7cfbb860 refactor: AutoGPT Platform Stealth Launch Repo Re-Org (#8113)
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform:
* Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder
  * Also rename `autogpt` to `original_autogpt` for absolute clarity
* Rename `rnd/` to `autogpt_platform/`
  * `rnd/autogpt_builder` -> `autogpt_platform/frontend`
  * `rnd/autogpt_server` -> `autogpt_platform/backend`
* Adjust any paths accordingly
2024-09-20 16:50:43 +02:00

38 lines
1.0 KiB
Dart

import 'package:auto_gpt_flutter_client/models/skill_tree/ground.dart';
import 'package:auto_gpt_flutter_client/models/skill_tree/info.dart';
class SkillNodeData {
final String name;
final List<String> category;
final String task;
final List<String> dependencies;
final int cutoff;
final Ground ground;
final Info info;
final String evalId;
SkillNodeData({
required this.name,
required this.category,
required this.task,
required this.dependencies,
required this.cutoff,
required this.ground,
required this.info,
required this.evalId,
});
factory SkillNodeData.fromJson(Map<String, dynamic> json) {
return SkillNodeData(
name: json['name'] ?? "",
category: List<String>.from(json['category'] ?? []),
task: json['task'] ?? "",
dependencies: List<String>.from(json['dependencies'] ?? []),
cutoff: json['cutoff'] ?? 0,
ground: Ground.fromJson(json['ground'] ?? {}),
info: Info.fromJson(json['info'] ?? {}),
evalId: json['eval_id'] ?? "",
);
}
}