class GetCustomerAddress { int? code; bool? status; String? message; List? details; GetCustomerAddress({this.code, this.status, this.message, this.details}); GetCustomerAddress.fromJson(Map json) { code = json['code']; status = json['status']; message = json['message']; if (json['details'] != null) { details = []; json['details'].forEach((v) { details!.add(new CustomerAddressDetail.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['code'] = this.code; data['status'] = this.status; data['message'] = this.message; if (this.details != null) { data['details'] = this.details!.map((v) => v.toJson()).toList(); } return data; } } class CustomerAddressDetail { int? locationid; int? customerid; String? address; String? suburb; String? city; String? state; String? landmark; String? doorno; String? postcode; String? latitude; String? longitude; String? defaultaddress; int? status; CustomerAddressDetail( {this.locationid, this.customerid, this.address, this.suburb, this.city, this.state, this.landmark, this.doorno, this.postcode, this.latitude, this.longitude, this.defaultaddress, this.status}); CustomerAddressDetail.fromJson(Map json) { locationid = json['locationid']; customerid = json['customerid']; address = json['address']; suburb = json['suburb']; city = json['city']; state = json['state']; landmark = json['landmark']; doorno = json['doorno']; postcode = json['postcode']; latitude = json['latitude']; longitude = json['longitude']; defaultaddress = json['defaultaddress']; status = json['status']; } Map toJson() { final Map data = new Map(); data['locationid'] = this.locationid; data['customerid'] = this.customerid; data['address'] = this.address; data['suburb'] = this.suburb; data['city'] = this.city; data['state'] = this.state; data['landmark'] = this.landmark; data['doorno'] = this.doorno; data['postcode'] = this.postcode; data['latitude'] = this.latitude; data['longitude'] = this.longitude; data['defaultaddress'] = this.defaultaddress; data['status'] = this.status; return data; } }