update carton and fcs shipment
This commit is contained in:
@@ -2,22 +2,22 @@ import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
|
||||
class ShipmentStatus {
|
||||
String status;
|
||||
DateTime date;
|
||||
DateTime? date;
|
||||
bool? done;
|
||||
String? staffId;
|
||||
String? staffName;
|
||||
ShipmentStatus(
|
||||
{required this.status,
|
||||
required this.date,
|
||||
this.date,
|
||||
this.done,
|
||||
this.staffId,
|
||||
this.staffName});
|
||||
|
||||
factory ShipmentStatus.fromMap(Map<String, dynamic> map) {
|
||||
var _date = (map['date'] as Timestamp);
|
||||
var _date = map['date'] != null ? (map['date'] as Timestamp) : null;
|
||||
return ShipmentStatus(
|
||||
status: map['status'],
|
||||
date: _date.toDate(),
|
||||
date: _date?.toDate(),
|
||||
done: map['done'],
|
||||
staffId: map['staff_id'],
|
||||
staffName: map['staff_name']);
|
||||
|
||||
Reference in New Issue
Block a user