class HospitalsModel { String desciption; Null desciptionN; dynamic iD; String legalName; String legalNameN; String name; Null nameN; String phoneNumber; String setupID; dynamic distanceInKilometers; bool isActive; String latitude; String longitude; dynamic mainProjectID; Null projectOutSA; bool usingInDoctorApp; HospitalsModel( {this.desciption, this.desciptionN, this.iD, this.legalName, this.legalNameN, this.name, this.nameN, this.phoneNumber, this.setupID, this.distanceInKilometers, this.isActive, this.latitude, this.longitude, this.mainProjectID, this.projectOutSA, this.usingInDoctorApp}); HospitalsModel.fromJson(Map json) { desciption = json['Desciption']; desciptionN = json['DesciptionN']; iD = json['ID']; legalName = json['LegalName']; legalNameN = json['LegalNameN']; name = json['Name']; nameN = json['NameN']; phoneNumber = json['PhoneNumber']; setupID = json['SetupID']; distanceInKilometers = json['DistanceInKilometers']; isActive = json['IsActive']; latitude = json['Latitude']; longitude = json['Longitude']; mainProjectID = json['MainProjectID']; projectOutSA = json['ProjectOutSA']; usingInDoctorApp = json['UsingInDoctorApp']; } Map toJson() { final Map data = new Map(); data['Desciption'] = this.desciption; data['DesciptionN'] = this.desciptionN; data['ID'] = this.iD; data['LegalName'] = this.legalName; data['LegalNameN'] = this.legalNameN; data['Name'] = this.name; data['NameN'] = this.nameN; data['PhoneNumber'] = this.phoneNumber; data['SetupID'] = this.setupID; data['DistanceInKilometers'] = this.distanceInKilometers; data['IsActive'] = this.isActive; data['Latitude'] = this.latitude; data['Longitude'] = this.longitude; data['MainProjectID'] = this.mainProjectID; data['ProjectOutSA'] = this.projectOutSA; data['UsingInDoctorApp'] = this.usingInDoctorApp; return data; } }