class GetCustomerByNumber { int? status; String? message; int? code; Customerdata? customerdata; GetCustomerByNumber( {this.status, this.message, this.code, this.customerdata}); GetCustomerByNumber.fromJson(Map json) { status = json['status']; message = json['message']; code = json['code']; customerdata = json['customerdata'] != null ? new Customerdata.fromJson(json['customerdata']) : null; } Map toJson() { final Map data = new Map(); data['status'] = this.status; data['message'] = this.message; data['code'] = this.code; if (this.customerdata != null) { data['customerdata'] = this.customerdata!.toJson(); } return data; } static List fromJsonList(List list) { return list.map((item) => GetCustomerByNumber.fromJson(item)).toList(); } } class Customerdata { int? customerid; int? authmode; int? configid; String? devicetype; String? accountid; String? firstname; String? lastname; String? contactno; String? email; String? profileimage; String? doorno; String? address; String? landmark; String? suburb; String? city; String? state; String? postcode; String? countrycode; String? customertoken; String? latitude; String? longitude; String? status; String? created; int? locationid; Customerdata( {this.customerid, this.authmode, this.configid, this.devicetype, this.accountid, this.firstname, this.lastname, this.contactno, this.email, this.profileimage, this.doorno, this.address, this.landmark, this.suburb, this.city, this.state, this.postcode, this.countrycode, this.customertoken, this.latitude, this.longitude, this.status, this.created, this.locationid}); Customerdata.fromJson(Map json) { customerid = json['customerid']; authmode = json['authmode']; configid = json['configid']; devicetype = json['devicetype']; accountid = json['accountid']; firstname = json['firstname']; lastname = json['lastname']; contactno = json['contactno']; email = json['email']; profileimage = json['profileimage']; doorno = json['doorno']; address = json['address']; landmark = json['landmark']; suburb = json['suburb']; city = json['city']; state = json['state']; postcode = json['postcode']; countrycode = json['countrycode']; customertoken = json['customertoken']; latitude = json['latitude']; longitude = json['longitude']; status = json['status']; created = json['created']; locationid = json['locationid']; } Map toJson() { final Map data = new Map(); data['customerid'] = this.customerid; data['authmode'] = this.authmode; data['configid'] = this.configid; data['devicetype'] = this.devicetype; data['accountid'] = this.accountid; data['firstname'] = this.firstname; data['lastname'] = this.lastname; data['contactno'] = this.contactno; data['email'] = this.email; data['profileimage'] = this.profileimage; data['doorno'] = this.doorno; data['address'] = this.address; data['landmark'] = this.landmark; data['suburb'] = this.suburb; data['city'] = this.city; data['state'] = this.state; data['postcode'] = this.postcode; data['countrycode'] = this.countrycode; data['customertoken'] = this.customertoken; data['latitude'] = this.latitude; data['longitude'] = this.longitude; data['status'] = this.status; data['created'] = this.created; data['locationid'] = this.locationid; return data; } }