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

18 lines
385 B
Dart
Raw Normal View History

class ShipmentPort {
String id;
String name;
ShipmentPort({required this.id, required this.name});
factory ShipmentPort.fromMap(Map<String, dynamic> map, String id) {
return ShipmentPort(id: id, name: map['name'] ?? "");
}
@override
bool operator ==(Object other) =>
other is ShipmentPort && other.id == id;
@override
int get hashCode => id.hashCode;
}