mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-15 01:58:23 -05:00
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
28 lines
651 B
Dart
28 lines
651 B
Dart
import 'package:auto_gpt_flutter_client/models/skill_tree/skill_node_data.dart';
|
|
|
|
class SkillTreeNode {
|
|
final String color;
|
|
final SkillNodeData data;
|
|
final String id;
|
|
final String label;
|
|
final String shape;
|
|
|
|
SkillTreeNode({
|
|
required this.color,
|
|
required this.data,
|
|
required this.id,
|
|
required this.label,
|
|
required this.shape,
|
|
});
|
|
|
|
factory SkillTreeNode.fromJson(Map<String, dynamic> json) {
|
|
return SkillTreeNode(
|
|
color: json['color'] ?? "",
|
|
data: SkillNodeData.fromJson(json['data'] ?? {}),
|
|
id: json['id'] ?? "",
|
|
label: json['label'] ?? "",
|
|
shape: json['shape'] ?? "",
|
|
);
|
|
}
|
|
}
|