feet/lib/api/group.dart

24 lines
356 B
Dart
Raw Permalink Normal View History

2022-12-29 16:11:01 +00:00
part of fever_api;
class Group {
final FeverAPI api;
late int id;
late String title;
Group(this.api, {
required this.id,
required this.title,
});
Group.fromJSON(this.api, Map<String, dynamic> json) {
id = toInt(json['id']);
title = json['title'];
}
@override
String toString() {
return 'Group $id: $title';
}
}