backup. before shop update

This commit is contained in:
2021-08-31 13:28:33 -04:00
parent c378a6203c
commit 808ffa3211
292 changed files with 51551 additions and 695 deletions

59
lib/models/address.dart Normal file
View File

@@ -0,0 +1,59 @@
import 'dart:convert';
class Address {
int id;
String addressLine1;
String addressLine2;
String city;
String state;
String country;
String zip;
String phone;
String fax;
String email;
String contactName;
int gender;
String lat;
String lng;
String fullAddress;
Address.fromJson(Map<String, dynamic> json)
: id = json['id'],
addressLine1 = json['address_line1'],
addressLine2 = json['address_line2'],
city = json['city'],
state = json['state'],
country = json['country'],
zip = json['zip'],
phone = json['phone'],
fax = json['fax'],
email = json['email'],
contactName = json['name'],
gender = json['gender'],
lat = json['lat'],
lng = json['lng'],
fullAddress = json['full_address'];
Map<String, dynamic> toJson() => {
'id': id,
'address_line1': addressLine1,
'address_line2': addressLine2,
'city': city,
'state': state,
'country': country,
'zip': zip,
'phone': phone,
'fax': fax,
'email': email,
'name': contactName,
'gender': gender,
'lat': lat,
'lng': lng,
'full_address': fullAddress,
};
@override
String toString() {
return json.encode(this);
}
}