mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
The SkillTreeNode model represents a single node in the skill tree. It includes: - Node ID - Node color
19 lines
423 B
Dart
19 lines
423 B
Dart
import 'package:auto_gpt_flutter_client/models/skill_tree/skill_node_data.dart';
|
|
|
|
// TODO: Update this with actual data
|
|
class SkillTreeNode {
|
|
final String color;
|
|
final int id;
|
|
|
|
// final SkillNodeData data;
|
|
|
|
SkillTreeNode({required this.color, required this.id});
|
|
|
|
factory SkillTreeNode.fromJson(Map<String, dynamic> json) {
|
|
return SkillTreeNode(
|
|
color: json['color'],
|
|
id: json['id'],
|
|
);
|
|
}
|
|
}
|