98 lines
2.6 KiB
Dart
98 lines
2.6 KiB
Dart
class CreateCustomers {
|
|
int? customerid;
|
|
int? configid;
|
|
int? tenantid;
|
|
String? firstname;
|
|
int? applocationid;
|
|
String? profileimage;
|
|
String? dialcode;
|
|
String? contactno;
|
|
String? devicetype;
|
|
String? deviceid;
|
|
String? customertoken;
|
|
String? address;
|
|
String? suburb;
|
|
String? city;
|
|
String? state;
|
|
String? postcode;
|
|
String? landmark;
|
|
String? doorno;
|
|
String? latitude;
|
|
String? longitude;
|
|
int? primaryaddress;
|
|
|
|
CreateCustomers(
|
|
{this.customerid,
|
|
this.configid,
|
|
this.tenantid,
|
|
this.firstname,
|
|
this.applocationid,
|
|
this.profileimage,
|
|
this.dialcode,
|
|
this.contactno,
|
|
this.devicetype,
|
|
this.deviceid,
|
|
this.customertoken,
|
|
this.address,
|
|
this.suburb,
|
|
this.city,
|
|
this.state,
|
|
this.postcode,
|
|
this.landmark,
|
|
this.doorno,
|
|
this.latitude,
|
|
this.longitude,
|
|
this.primaryaddress
|
|
});
|
|
|
|
CreateCustomers.fromJson(Map<String, dynamic> json) {
|
|
customerid = json['customerid'];
|
|
configid = json['configid'];
|
|
tenantid = json['tenantid'];
|
|
firstname = json['firstname'];
|
|
applocationid = json['applocationid'];
|
|
profileimage = json['profileimage'];
|
|
dialcode = json['dialcode'];
|
|
contactno = json['contactno'];
|
|
devicetype = json['devicetype'];
|
|
deviceid = json['deviceid'];
|
|
customertoken = json['customertoken'];
|
|
address = json['address'];
|
|
suburb = json['suburb'];
|
|
city = json['city'];
|
|
state = json['state'];
|
|
postcode = json['postcode'];
|
|
landmark = json['landmark'];
|
|
doorno = json['doorno'];
|
|
latitude = json['latitude'];
|
|
longitude = json['longitude'];
|
|
primaryaddress = json['primaryaddress'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['customerid'] = this.customerid;
|
|
data['configid'] = this.configid;
|
|
data['tenantid'] = this.tenantid;
|
|
data['firstname'] = this.firstname;
|
|
data['applocationid'] = this.applocationid;
|
|
data['profileimage'] = this.profileimage;
|
|
data['dialcode'] = this.dialcode;
|
|
data['contactno'] = this.contactno;
|
|
data['devicetype'] = this.devicetype;
|
|
data['deviceid'] = this.deviceid;
|
|
data['customertoken'] = this.customertoken;
|
|
data['address'] = this.address;
|
|
data['suburb'] = this.suburb;
|
|
data['city'] = this.city;
|
|
data['state'] = this.state;
|
|
data['postcode'] = this.postcode;
|
|
data['landmark'] = this.landmark;
|
|
data['doorno'] = this.doorno;
|
|
data['latitude'] = this.latitude;
|
|
data['longitude'] = this.longitude;
|
|
data['primaryaddress'] = this.primaryaddress;
|
|
return data;
|
|
}
|
|
}
|