fix profile
This commit is contained in:
@@ -5,8 +5,8 @@ class DeliveryAddress {
|
||||
String addressLine2;
|
||||
String city;
|
||||
String state;
|
||||
String country;
|
||||
String phoneNumber;
|
||||
bool isDefault;
|
||||
DeliveryAddress(
|
||||
{this.id,
|
||||
this.fullName,
|
||||
@@ -14,8 +14,8 @@ class DeliveryAddress {
|
||||
this.addressLine2,
|
||||
this.city,
|
||||
this.state,
|
||||
this.country,
|
||||
this.phoneNumber});
|
||||
this.phoneNumber,
|
||||
this.isDefault = false});
|
||||
|
||||
factory DeliveryAddress.fromMap(Map<String, dynamic> map, String docID) {
|
||||
return DeliveryAddress(
|
||||
@@ -25,8 +25,8 @@ class DeliveryAddress {
|
||||
addressLine2: map['address_line2'],
|
||||
city: map['city'],
|
||||
state: map['state'],
|
||||
country: map['country'],
|
||||
phoneNumber: map['phone_number'],
|
||||
isDefault: map['is_defalut'] ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ class DeliveryAddress {
|
||||
'city': city,
|
||||
'state': state,
|
||||
'phone_number': phoneNumber,
|
||||
'country': country,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user