Introduced ProjectCubit to handle project-related state.

This commit is contained in:
hannathkadher
2025-02-15 00:34:38 +04:00
parent a623f1c723
commit 55de7fab0f
3 changed files with 61 additions and 8 deletions

View File

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