32 lines
626 B
Dart
32 lines
626 B
Dart
|
|
class DeliveryAddress {
|
||
|
|
String id;
|
||
|
|
String fullName;
|
||
|
|
String addressLine1;
|
||
|
|
String addressLine2;
|
||
|
|
String city;
|
||
|
|
String state;
|
||
|
|
String country;
|
||
|
|
String phoneNumber;
|
||
|
|
DeliveryAddress(
|
||
|
|
{this.fullName,
|
||
|
|
this.addressLine1,
|
||
|
|
this.addressLine2,
|
||
|
|
this.city,
|
||
|
|
this.state,
|
||
|
|
this.country,
|
||
|
|
this.phoneNumber});
|
||
|
|
|
||
|
|
Map<String, dynamic> toMap() {
|
||
|
|
return {
|
||
|
|
"id": id,
|
||
|
|
'full_name': fullName,
|
||
|
|
'address_line1': addressLine1,
|
||
|
|
'address_line2': addressLine2,
|
||
|
|
'city': city,
|
||
|
|
'state': state,
|
||
|
|
'phone_number': phoneNumber,
|
||
|
|
'contry': country,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|