fixed tag model

This commit is contained in:
hannathkadher
2025-01-05 21:16:59 +04:00
parent 5bd257ee56
commit 0fda5457ae
9 changed files with 53 additions and 41 deletions

View File

@ -1,13 +1,15 @@
class SelectedProduct {
final String productId;
int count;
final String productName;
SelectedProduct({required this.productId, required this.count});
SelectedProduct({required this.productId, required this.count, required this.productName});
Map<String, dynamic> toJson() {
return {
'productId': productId,
'count': count,
'productName': productName,
};
}

View File

@ -90,6 +90,7 @@ class SpaceModel {
return SelectedProduct(
productId: product['product']['uuid'],
count: product['productCount'],
productName: '',
);
}).toList()
: [],