check null safety
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
class CustomDuty {
|
||||
String id;
|
||||
String productType;
|
||||
String desc;
|
||||
String? id;
|
||||
String? productType;
|
||||
String? desc;
|
||||
double fee;
|
||||
double shipmentRate;
|
||||
CustomDuty(
|
||||
{this.id, this.productType, this.desc, this.fee, this.shipmentRate});
|
||||
{this.id,
|
||||
this.productType,
|
||||
this.desc,
|
||||
this.fee = 0,
|
||||
this.shipmentRate = 0});
|
||||
|
||||
factory CustomDuty.fromMap(Map<String, dynamic> map, String id) {
|
||||
return CustomDuty(
|
||||
|
||||
Reference in New Issue
Block a user