update processing,customer and staff
This commit is contained in:
@@ -29,7 +29,7 @@ class DeliveryAddress {
|
||||
city: map['city'],
|
||||
state: map['state'],
|
||||
phoneNumber: map['phone_number'],
|
||||
isDefault: map['is_defalut'] ?? false,
|
||||
isDefault: map['is_default'] ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -46,6 +46,10 @@ class DeliveryAddress {
|
||||
};
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMapForDefault() {
|
||||
return {"id": id};
|
||||
}
|
||||
|
||||
bool isChangedForEdit(DeliveryAddress deliveryAddress) {
|
||||
return deliveryAddress.fullName != this.fullName ||
|
||||
deliveryAddress.phoneNumber != this.phoneNumber ||
|
||||
|
||||
Reference in New Issue
Block a user