18 lines
385 B
Dart
18 lines
385 B
Dart
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;
|
|
}
|