class CreateNoteModel { int visitType; int admissionNo; int projectID; int patientTypeID; int patientID; int clinicID; String notes; int createdBy; int editedBy; String nursingRemarks; int languageID; String stamp; String iPAdress; double versionID; int channel; String tokenID; String sessionID; bool isLoginForDoctorApp; bool patientOutSA; CreateNoteModel( {this.visitType, this.admissionNo, this.projectID, this.patientTypeID, this.patientID, this.clinicID, this.notes, this.createdBy, this.editedBy, this.nursingRemarks, this.languageID, this.stamp, this.iPAdress, this.versionID, this.channel, this.tokenID, this.sessionID, this.isLoginForDoctorApp, this.patientOutSA}); CreateNoteModel.fromJson(Map json) { visitType = json['VisitType']; admissionNo = json['AdmissionNo']; projectID = json['ProjectID']; patientTypeID = json['PatientTypeID']; patientID = json['PatientID']; clinicID = json['ClinicID']; notes = json['Notes']; createdBy = json['CreatedBy']; editedBy = json['EditedBy']; nursingRemarks = json['NursingRemarks']; languageID = json['LanguageID']; stamp = json['stamp']; iPAdress = json['IPAdress']; versionID = json['VersionID']; channel = json['Channel']; tokenID = json['TokenID']; sessionID = json['SessionID']; isLoginForDoctorApp = json['IsLoginForDoctorApp']; patientOutSA = json['PatientOutSA']; } Map toJson() { final Map data = new Map(); data['VisitType'] = this.visitType; data['AdmissionNo'] = this.admissionNo; data['ProjectID'] = this.projectID; data['PatientTypeID'] = this.patientTypeID; data['PatientID'] = this.patientID; data['ClinicID'] = this.clinicID; data['Notes'] = this.notes; data['CreatedBy'] = this.createdBy; data['EditedBy'] = this.editedBy; data['NursingRemarks'] = this.nursingRemarks; data['LanguageID'] = this.languageID; data['stamp'] = this.stamp; data['IPAdress'] = this.iPAdress; data['VersionID'] = this.versionID; data['Channel'] = this.channel; data['TokenID'] = this.tokenID; data['SessionID'] = this.sessionID; data['IsLoginForDoctorApp'] = this.isLoginForDoctorApp; data['PatientOutSA'] = this.patientOutSA; return data; } }