-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
City stored in shared pref, shows in appbar
- Loading branch information
1 parent
ef49afe
commit 8f6cce6
Showing
7 changed files
with
113 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
class Address { | ||
String recipent; | ||
String address_id; | ||
String city; | ||
String contact; | ||
String country; | ||
String is_primary; | ||
String locality; | ||
String state; | ||
String user_id; | ||
String zip; | ||
|
||
Address({this.recipent, this.address_id, this.city, this.contact, this.country, this.is_primary, this.locality, this.state, this.user_id, this.zip}); | ||
|
||
factory Address.fromJson(Map<String, dynamic> json) { | ||
return Address( | ||
recipent: json['recipent'], | ||
address_id: json['address_id'], | ||
city: json['city'], | ||
contact: json['contact'], | ||
country: json['country'], | ||
is_primary: json['is_primary'], | ||
locality: json['locality'], | ||
state: json['state'], | ||
user_id: json['user_id'], | ||
zip: json['zip'], | ||
); | ||
} | ||
|
||
Map<String, dynamic> toJson() { | ||
final Map<String, dynamic> data = new Map<String, dynamic>(); | ||
data['recipent'] = this.recipent; | ||
data['address_id'] = this.address_id; | ||
data['city'] = this.city; | ||
data['contact'] = this.contact; | ||
data['country'] = this.country; | ||
data['is_primary'] = this.is_primary; | ||
data['locality'] = this.locality; | ||
data['state'] = this.state; | ||
data['user_id'] = this.user_id; | ||
data['zip'] = this.zip; | ||
return data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters