update cargo type form from rate, update carton info and form
This commit is contained in:
17
lib/domain/entities/shipment_consignee.dart
Normal file
17
lib/domain/entities/shipment_consignee.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
class ShipmentConsignee {
|
||||
String id;
|
||||
String name;
|
||||
|
||||
ShipmentConsignee({required this.id, required this.name});
|
||||
|
||||
factory ShipmentConsignee.fromMap(Map<String, dynamic> map, String id) {
|
||||
return ShipmentConsignee(id: id, name: map['name'] ?? "");
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
other is ShipmentConsignee && other.id == id;
|
||||
|
||||
@override
|
||||
int get hashCode => id.hashCode;
|
||||
}
|
||||
Reference in New Issue
Block a user