add fcs shipment service

This commit is contained in:
Sai Naw Wun
2020-10-07 17:22:01 +06:30
parent 897e5c9b93
commit a0569a0986
5 changed files with 88 additions and 1 deletions

View File

@@ -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,
};
}
}