add shipments
This commit is contained in:
@@ -13,6 +13,7 @@ class Package {
|
||||
List<String> photoUrls;
|
||||
List<ShipmentStatus> shipmentHistory;
|
||||
String desc;
|
||||
String deliveryAddressID;
|
||||
|
||||
String status;
|
||||
String shipmentNumber;
|
||||
@@ -70,7 +71,8 @@ class Package {
|
||||
this.currentStatusDate,
|
||||
this.photoUrls,
|
||||
this.desc,
|
||||
this.isChecked =false});
|
||||
this.deliveryAddressID,
|
||||
this.isChecked = false});
|
||||
|
||||
factory Package.fromMap(Map<String, dynamic> map, String docID) {
|
||||
var _currentStatusDate = (map['current_status_date'] as Timestamp);
|
||||
@@ -92,6 +94,7 @@ class Package {
|
||||
remark: map['remark'],
|
||||
desc: map['desc'],
|
||||
currentStatus: map['current_status'],
|
||||
deliveryAddressID: map['delivery_address_id'],
|
||||
currentStatusDate:
|
||||
_currentStatusDate != null ? _currentStatusDate.toDate() : null,
|
||||
photoUrls: _photoUrls,
|
||||
|
||||
Reference in New Issue
Block a user