class PatientArrivalEntity { String age; String appointmentDate; int appointmentNo; String appointmentType; String arrivedOn; String companyName; String endTime; int episodeNo; int fallRiskScore; String gender; int medicationOrders; String mobileNumber; String nationality; int patientMRN; String patientName; int rowCount; String startTime; String visitType; PatientArrivalEntity( {this.age, this.appointmentDate, this.appointmentNo, this.appointmentType, this.arrivedOn, this.companyName, this.endTime, this.episodeNo, this.fallRiskScore, this.gender, this.medicationOrders, this.mobileNumber, this.nationality, this.patientMRN, this.patientName, this.rowCount, this.startTime, this.visitType}); PatientArrivalEntity.fromJson(Map json) { age = json['age']; appointmentDate = json['appointmentDate']; appointmentNo = json['appointmentNo']; appointmentType = json['appointmentType']; arrivedOn = json['arrivedOn']; companyName = json['companyName']; endTime = json['endTime']; episodeNo = json['episodeNo']; fallRiskScore = json['fallRiskScore']; gender = json['gender']; medicationOrders = json['medicationOrders']; mobileNumber = json['mobileNumber']; nationality = json['nationality']; patientMRN = json['patientMRN']; patientName = json['patientName']; rowCount = json['rowCount']; startTime = json['startTime']; visitType = json['visitType']; } Map toJson() { final Map data = new Map(); data['age'] = this.age; data['appointmentDate'] = this.appointmentDate; data['appointmentNo'] = this.appointmentNo; data['appointmentType'] = this.appointmentType; data['arrivedOn'] = this.arrivedOn; data['companyName'] = this.companyName; data['endTime'] = this.endTime; data['episodeNo'] = this.episodeNo; data['fallRiskScore'] = this.fallRiskScore; data['gender'] = this.gender; data['medicationOrders'] = this.medicationOrders; data['mobileNumber'] = this.mobileNumber; data['nationality'] = this.nationality; data['patientMRN'] = this.patientMRN; data['patientName'] = this.patientName; data['rowCount'] = this.rowCount; data['startTime'] = this.startTime; data['visitType'] = this.visitType; return data; } }