Files
fcs/lib/domain/entities/shipment_consignee.dart

18 lines
410 B
Dart
Raw Normal View History

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;
}