class GetHistoryResModel { int appointmentNo; int episodeId; int historyId; int historyType; bool isChecked; int patientMRN; String remarks; GetHistoryResModel( {this.appointmentNo, this.episodeId, this.historyId, this.historyType, this.isChecked, this.patientMRN, this.remarks}); GetHistoryResModel.fromJson(Map json) { appointmentNo = json['appointmentNo']; episodeId = json['episodeId']; historyId = json['historyId']; historyType = json['historyType']; isChecked = json['isChecked']; patientMRN = json['patientMRN']; remarks = json['remarks']; } Map toJson() { final Map data = new Map(); data['appointmentNo'] = this.appointmentNo; data['episodeId'] = this.episodeId; data['historyId'] = this.historyId; data['historyType'] = this.historyType; data['isChecked'] = this.isChecked; data['patientMRN'] = this.patientMRN; data['remarks'] = this.remarks; return data; } }