You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
|
|
|
|
class Address { |
|
Address(); |
|
|
|
String address; |
|
String area; |
|
String city; |
|
String cityInfo; |
|
String id; |
|
bool isDefault; |
|
String latitude; |
|
String longitude; |
|
String mid; |
|
String phone; |
|
String province; |
|
String tag; |
|
String username; |
|
|
|
factory Address.fromJson(Map<String, dynamic> json) => Address() |
|
..address = json['address'] as String |
|
..area = json['area'] as String |
|
..city = json['city'] as String |
|
..cityInfo = json['cityInfo'] as String |
|
..id = json['id'] as String |
|
..isDefault = json['isDefault'] as bool |
|
..latitude = json['latitude'] as String |
|
..longitude = json['longitude'] as String |
|
..mid = json['mid'] as String |
|
..phone = json['phone'] as String |
|
..province = json['province'] as String |
|
..tag = json['tag'] as String |
|
..username = json['username'] as String; |
|
|
|
Map<String, dynamic> toJson() => { |
|
'address': this.address, |
|
'area': this.area, |
|
'city': this.city, |
|
'cityInfo': this.cityInfo, |
|
'id': this.id, |
|
'isDefault': this.isDefault, |
|
'latitude': this.latitude, |
|
'longitude': this.longitude, |
|
'mid': this.mid, |
|
'phone': this.phone, |
|
'province': this.province, |
|
'tag': this.tag, |
|
'username': this.username, |
|
}; |
|
}
|
|
|