class GetAllSickLeaveResponse { int appointmentNo; bool isExtendedLeave; int noOfDays; int patientMRN; String remarks; int requestNo; String startDate; int status; GetAllSickLeaveResponse( {this.appointmentNo, this.isExtendedLeave, this.noOfDays, this.patientMRN, this.remarks, this.requestNo, this.startDate, this.status}); GetAllSickLeaveResponse.fromJson(Map json) { appointmentNo = json['appointmentNo']; isExtendedLeave = json['isExtendedLeave']; noOfDays = json['noOfDays']; patientMRN = json['patientMRN']; remarks = json['remarks']; requestNo = json['requestNo']; startDate = json['startDate']; status = json['status']; } Map toJson() { final Map data = new Map(); data['appointmentNo'] = this.appointmentNo; data['isExtendedLeave'] = this.isExtendedLeave; data['noOfDays'] = this.noOfDays; data['patientMRN'] = this.patientMRN; data['remarks'] = this.remarks; data['requestNo'] = this.requestNo; data['startDate'] = this.startDate; data['status'] = this.status; return data; } }