class ShipmentPort { String id; String name; ShipmentPort({required this.id, required this.name}); factory ShipmentPort.fromMap(Map 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; }