mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
models
This commit is contained in:
27
lib/features/app_layout/model/community_model.dart
Normal file
27
lib/features/app_layout/model/community_model.dart
Normal 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,
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user