class ExpeditorInfoModel { String city; String country; String description; int employeecount; String expeditorname; int id; String location; String mail; String phone; int timestmp; String zip; ExpeditorInfoModel({ this.city, this.country, this.description, this.employeecount, this.expeditorname, this.id, this.location, this.mail, this.phone, this.timestmp, this.zip, }); factory ExpeditorInfoModel.fromJson(Map json) => ExpeditorInfoModel( city: json!=null?json["city"] : null, country: json!=null?json["country"]:null, description: json!=null?json["description"]:null, employeecount: json!=null?json["employeecount"]:null, expeditorname: json!=null?json["expeditorname"]:null, id: json!=null?json["id"]:null, location: json!=null?json["location"]:null, mail: json!=null?json["mail"]:null, phone: json!=null?json["phone"]:null, timestmp: json!=null?json["timestmp"]:null, zip: json!=null?json["zip"]:null, ); Map toJson() => { "city": city, "country": country, "description": description, "employeecount": employeecount, "expeditorname": expeditorname, "id": id, "location": location, "mail": mail, "phone": phone, "timestmp": timestmp, "zip": zip, }; }