mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
The Info data model holds metadata about a skill node. It includes: - The difficulty level of the skill node - A description of the skill node - A list of potential side effects related to the skill node
20 lines
432 B
Dart
20 lines
432 B
Dart
class Info {
|
|
final String difficulty;
|
|
final String description;
|
|
final List<String> sideEffects;
|
|
|
|
Info({
|
|
required this.difficulty,
|
|
required this.description,
|
|
required this.sideEffects,
|
|
});
|
|
|
|
factory Info.fromJson(Map<String, dynamic> json) {
|
|
return Info(
|
|
difficulty: json['difficulty'],
|
|
description: json['description'],
|
|
sideEffects: List<String>.from(json['side_effects']),
|
|
);
|
|
}
|
|
}
|