File size: 492 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
class SkillTreeEdge {
  final String id;
  final String from;
  final String to;
  final String arrows;

  SkillTreeEdge({
    required this.id,
    required this.from,
    required this.to,
    required this.arrows,
  });

  // Optionally, add a factory constructor to initialize from JSON
  factory SkillTreeEdge.fromJson(Map<String, dynamic> json) {
    return SkillTreeEdge(
      id: json['id'],
      from: json['from'],
      to: json['to'],
      arrows: json['arrows'],
    );
  }
}