initial commit to gitea
This commit is contained in:
22
lib/models/group.dart
Normal file
22
lib/models/group.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
class Group {
|
||||
int id;
|
||||
String name;
|
||||
|
||||
Group.fromJson(Map<String, dynamic> json) :
|
||||
id = json['id'],
|
||||
name = json['name'];
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'name': name
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return json.encode(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user