feat: syn product
This commit is contained in:
@@ -3,7 +3,7 @@ import 'dart:developer';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
|
||||
class ProductRequestModel {
|
||||
final int? id;
|
||||
final String? id;
|
||||
final String name;
|
||||
final int price;
|
||||
final int stock;
|
||||
@@ -32,11 +32,11 @@ class ProductRequestModel {
|
||||
'is_best_seller': isBestSeller.toString(),
|
||||
'printer_type': printerType ?? '',
|
||||
};
|
||||
|
||||
|
||||
if (id != null) {
|
||||
map['id'] = id.toString();
|
||||
}
|
||||
|
||||
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user