fix errors
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user