Files
fcs/lib/domain/vo/shipment_status.dart
Sai Naw Wun 65dda16fe6 clean up
2020-10-07 02:33:06 +06:30

18 lines
432 B
Dart

import 'package:cloud_firestore/cloud_firestore.dart';
class ShipmentStatus {
String status;
DateTime date;
bool done;
ShipmentStatus({this.status, this.date, this.done});
factory ShipmentStatus.fromMap(Map<String, dynamic> map) {
var _date = (map['date'] as Timestamp);
return ShipmentStatus(
status: map['status'],
date: _date == null ? null : _date.toDate(),
done: map['done'],
);
}
}