update cargo type form from rate, update carton info and form

This commit is contained in:
tzw
2024-09-25 21:49:09 +06:30
parent 1be18c08a9
commit 02e079c514
51 changed files with 1407 additions and 643 deletions

View File

@@ -0,0 +1,17 @@
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;
}