class GetHistoryReqModel { int patientMRN; int historyType; GetHistoryReqModel({this.patientMRN, this.historyType}); GetHistoryReqModel.fromJson(Map json) { patientMRN = json['PatientMRN']; historyType = json['HistoryType']; } Map toJson() { final Map data = new Map(); data['PatientMRN'] = this.patientMRN; data['HistoryType'] = this.historyType; return data; } }