This commit is contained in:
hannathkadher
2024-10-29 18:41:59 +04:00
parent 0e6b83d9f5
commit 1558996891
9 changed files with 295 additions and 224 deletions

View File

@ -0,0 +1,27 @@
class Community {
final String uuid;
final String name;
final String description;
Community({
required this.uuid,
required this.name,
required this.description,
});
factory Community.fromJson(Map<String, dynamic> json) {
return Community(
uuid: json['uuid'],
name: json['name'],
description: json['description'],
);
}
Map<String, dynamic> toJson() {
return {
'uuid': uuid,
'name': name,
'description': description,
};
}
}