File size: 651 Bytes
b225a21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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'] ?? "",
);
}
}
|