add fcs shipment service
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class FcsShipment {
|
||||
String id;
|
||||
DateTime shipDate;
|
||||
String shipmentNumber;
|
||||
DateTime cutoffDate;
|
||||
@@ -11,7 +12,8 @@ class FcsShipment {
|
||||
String status;
|
||||
String remark;
|
||||
FcsShipment(
|
||||
{this.shipDate,
|
||||
{this.id,
|
||||
this.shipDate,
|
||||
this.shipmentNumber,
|
||||
this.cutoffDate,
|
||||
this.shipType,
|
||||
@@ -22,4 +24,21 @@ class FcsShipment {
|
||||
this.port,
|
||||
this.destination,
|
||||
this.remark});
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
"id": id,
|
||||
'shipment_date': shipDate?.toUtc()?.toIso8601String(),
|
||||
'shipment_number': shipmentNumber,
|
||||
'cutoff_date': cutoffDate?.toUtc()?.toIso8601String(),
|
||||
'shipment_type': shipType,
|
||||
'arrival_date': arrivalDate?.toUtc()?.toIso8601String(),
|
||||
'departure_date': departureDate?.toUtc()?.toIso8601String(),
|
||||
'consignee': consignee,
|
||||
'port': port,
|
||||
'destination': destination,
|
||||
'status': status,
|
||||
'remark': remark,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user