check null safety
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
class DiscountByWeight {
|
||||
String id;
|
||||
String? id;
|
||||
double weight;
|
||||
double discount;
|
||||
|
||||
DiscountByWeight({this.id, this.weight, this.discount});
|
||||
DiscountByWeight({this.id, this.weight = 0, this.discount = 0});
|
||||
|
||||
factory DiscountByWeight.fromMap(Map<String, dynamic> map, String id) {
|
||||
return DiscountByWeight(
|
||||
|
||||
Reference in New Issue
Block a user