// TODO : it have to be changed. class PatiantInformtion { final List list; int genderInt; String age; String appointmentDate; int appointmentNo; String appointmentType; String arrivedOn; int clinicGroupId; String companyName; Null dischargeStatus; Null doctorDetails; int doctorId; String endTime; int episodeNo; int fallRiskScore; bool isSigned; int medicationOrders; String mobileNumber; String nationality; int projectId; int clinicId; int patientId; String doctorName; String doctorNameN; String firstName; String middleName; String lastName; String firstNameN; String middleNameN; String lastNameN; int gender; String dateofBirth; String nationalityId; String emailAddress; String patientIdentificationNo; int patientType; String admissionNo; String admissionDate; String roomId; String bedId; String nursingStationId; String description; String clinicDescription; String clinicDescriptionN; String nationalityName; String nationalityNameN; String genderDescription; String nursingStationName; String startTime; PatiantInformtion({ this.list, this.projectId, this.clinicId, this.doctorId, this.patientId, this.doctorName, this.doctorNameN, this.firstName, this.middleName, this.lastName, this.firstNameN, this.middleNameN, this.lastNameN, this.gender, this.dateofBirth, this.nationalityId, this.mobileNumber, this.emailAddress, this.patientIdentificationNo, this.patientType, this.admissionNo, this.admissionDate, this.roomId, this.bedId, this.nursingStationId, this.description, this.clinicDescription, this.clinicDescriptionN, this.nationalityName, this.nationalityNameN, this.age, this.genderDescription, this.nursingStationName, this.appointmentDate, this.startTime, this.appointmentNo, this.appointmentType, this.arrivedOn, this.clinicGroupId, this.companyName, this.dischargeStatus, this.doctorDetails, this.endTime, this.episodeNo, this.fallRiskScore, this.genderInt, this.isSigned, this.medicationOrders, this.nationality, }); factory PatiantInformtion.fromJson(Map json) => PatiantInformtion( projectId: json["ProjectID"], clinicId: json["ClinicID"], doctorId: json["DoctorID"], patientId: json["PatientID"], doctorName: json["DoctorName"], doctorNameN: json["DoctorNameN"], firstName: json["FirstName"], middleName: json["MiddleName"], lastName: json["LastName"], firstNameN: json["FirstNameN"], middleNameN: json["MiddleNameN"], lastNameN: json["LastNameN"], gender: json["Gender"], dateofBirth: json["DateofBirth"], nationalityId: json["NationalityID"], mobileNumber: json["MobileNumber"], emailAddress: json["EmailAddress"], patientIdentificationNo: json["PatientIdentificationNo"], patientType: json["PatientType"], admissionNo: json["AdmissionNo"], admissionDate: json["AdmissionDate"], roomId: json["RoomID"], bedId: json["BedID"], nursingStationId: json["NursingStationID"], description: json["Description"], clinicDescription: json["ClinicDescription"], clinicDescriptionN: json["ClinicDescriptionN"], nationalityName: json["NationalityName"], nationalityNameN: json["NationalityNameN"], age: json["Age"], genderDescription: json["GenderDescription"], nursingStationName: json["NursingStationName"], appointmentDate: json["AppointmentDate"]?? '', startTime: json["StartTime"], appointmentNo :json['appointmentNo'], appointmentType :json['appointmentType'], arrivedOn :json['arrivedOn'], clinicGroupId :json['clinicGroupId'], companyName :json['companyName'], dischargeStatus :json['dischargeStatus'], doctorDetails :json['doctorDetails'], endTime :json['endTime'], episodeNo :json['episodeNo'], fallRiskScore :json['fallRiskScore'], isSigned :json['isSigned'], medicationOrders :json['medicationOrders'], nationality :json['nationality'], ); }