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