2020-10-07 14:42:07 +06:30
|
|
|
class FcsShipment {
|
2020-10-07 17:22:01 +06:30
|
|
|
String id;
|
2020-09-15 07:13:41 +06:30
|
|
|
DateTime shipDate;
|
|
|
|
|
String shipmentNumber;
|
|
|
|
|
DateTime cutoffDate;
|
|
|
|
|
String shipType;
|
|
|
|
|
DateTime arrivalDate;
|
|
|
|
|
DateTime departureDate;
|
|
|
|
|
String consignee;
|
|
|
|
|
String port;
|
|
|
|
|
String destination;
|
|
|
|
|
String status;
|
|
|
|
|
String remark;
|
2020-10-07 14:42:07 +06:30
|
|
|
FcsShipment(
|
2020-10-07 17:22:01 +06:30
|
|
|
{this.id,
|
|
|
|
|
this.shipDate,
|
2020-09-15 07:13:41 +06:30
|
|
|
this.shipmentNumber,
|
|
|
|
|
this.cutoffDate,
|
|
|
|
|
this.shipType,
|
|
|
|
|
this.status,
|
|
|
|
|
this.arrivalDate,
|
|
|
|
|
this.departureDate,
|
|
|
|
|
this.consignee,
|
|
|
|
|
this.port,
|
|
|
|
|
this.destination,
|
|
|
|
|
this.remark});
|
2020-10-07 17:22:01 +06:30
|
|
|
|
|
|
|
|
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,
|
|
|
|
|
};
|
|
|
|
|
}
|
2020-09-15 07:13:41 +06:30
|
|
|
}
|