fix errors

This commit is contained in:
Sai Naw Wun
2020-10-22 04:14:53 +06:30
parent 2021f74872
commit e5540c5491
32 changed files with 1069 additions and 811 deletions

View File

@@ -13,6 +13,7 @@ class Shipment {
String pickupTimeEnd;
String userName;
String userID;
String phoneNumber;
int numberOfPackage;
int weight;
@@ -35,6 +36,7 @@ class Shipment {
{this.id,
this.shipmentNumber,
this.shipmentType,
this.userID,
this.userName,
this.phoneNumber,
this.pickupTimeStart,
@@ -75,6 +77,7 @@ class Shipment {
return Shipment(
id: id,
userName: map['user_name'],
userID: map['user_id'],
shipmentNumber: map['shipment_number'],
phoneNumber: map['phone_number'],
pickupDate: pd == null ? null : pd.toDate(),
@@ -97,6 +100,7 @@ class Shipment {
return {
"id": id,
'user_id': userID,
'cartons': _boxes,
'shipment_type': shipmentType,
'pickup_address': pickupAddress.toMap(),