INFRA: Set Up Project.

This commit is contained in:
2025-11-28 11:10:49 +05:00
commit c798279f7d
609 changed files with 77436 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class FavouriteItemModel {
String? storeId;
String? userId;
String? productId;
String? sectionId;
FavouriteItemModel({this.storeId, this.userId, this.productId, this.sectionId});
factory FavouriteItemModel.fromJson(Map<String, dynamic> parsedJson) {
return FavouriteItemModel(
storeId: parsedJson["store_id"] ?? "",
userId: parsedJson["user_id"] ?? "",
productId: parsedJson["product_id"] ?? "",
sectionId: parsedJson["section_id"] ?? "",
);
}
Map<String, dynamic> toJson() {
return {"store_id": storeId, "user_id": userId, "product_id": productId, "section_id": sectionId};
}
}