Files
fcs/lib/domain/vo/shipment_status.dart

18 lines
432 B
Dart
Raw Normal View History

2020-09-17 06:02:48 +06:30
import 'package:cloud_firestore/cloud_firestore.dart';
2020-09-15 07:13:41 +06:30
class ShipmentStatus {
String status;
DateTime date;
bool done;
ShipmentStatus({this.status, this.date, this.done});
2020-09-17 06:02:48 +06:30
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'],
);
}
2020-09-15 07:13:41 +06:30
}