class FcsShipment { String id; DateTime shipDate; String shipmentNumber; DateTime cutoffDate; String shipType; DateTime arrivalDate; DateTime departureDate; String consignee; String port; String destination; String status; String remark; FcsShipment( {this.id, this.shipDate, this.shipmentNumber, this.cutoffDate, this.shipType, this.status, this.arrivalDate, this.departureDate, this.consignee, this.port, this.destination, this.remark}); Map 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, }; } }