class GetHomeMedicationList {
  List? personalizationEntity;
  int? appointmentId;
  int? clinicGroupId;
  int? clinicId;
  String? createdTime;
  String? doseQuantity;
  String? formularyName;
  String? frequencyId;
  String? frequencyString;
  String? genericFormularyId;
  String? homeMedFrom;
  int? hospitalGroupId;
  int? hospitalId;
  String? id;
  bool? isActive;
  bool? isEHRIPReconciled;
  bool? isEHROPReconciled;
  bool? isERIPReconciled;
  bool? isFreeText;
  bool? isReconciled;
  bool? isUnknownDetail;
  String? lastUpdatedTime;
  int? patientId;
  int? patientPomrId;
  String? prescribeTypeAlias;
  int? prescribedItemId;
  String? prescribedItemName;
  String? remarks;
  String? routeId;
  String? routeString;
  String? rowVersion;
  String? sentence;
  String? strengthId;
  String? strengthString;

  GetHomeMedicationList(
      {this.personalizationEntity,
        this.appointmentId,
        this.clinicGroupId,
        this.clinicId,
        this.createdTime,
        this.doseQuantity,
        this.formularyName,
        this.frequencyId,
        this.frequencyString,
        this.genericFormularyId,
        this.homeMedFrom,
        this.hospitalGroupId,
        this.hospitalId,
        this.id,
        this.isActive,
        this.isEHRIPReconciled,
        this.isEHROPReconciled,
        this.isERIPReconciled,
        this.isFreeText,
        this.isReconciled,
        this.isUnknownDetail,
        this.lastUpdatedTime,
        this.patientId,
        this.patientPomrId,
        this.prescribeTypeAlias,
        this.prescribedItemId,
        this.prescribedItemName,
        this.remarks,
        this.routeId,
        this.routeString,
        this.rowVersion,
        this.sentence,
        this.strengthId,
        this.strengthString});

  GetHomeMedicationList.fromJson(Map<String, dynamic> json) {
    if (json['PersonalizationEntity'] != null) {
      personalizationEntity = [];
      json['PersonalizationEntity'].forEach((v) {
        personalizationEntity!.add( v.fromJson(v));
      });
    }
    appointmentId = json['appointmentId'];
    clinicGroupId = json['clinicGroupId'];
    clinicId = json['clinicId'];
    createdTime = json['createdTime'];
    doseQuantity = json['doseQuantity'];
    formularyName = json['formularyName'];
    frequencyId = json['frequencyId'];
    frequencyString = json['frequencyString'];
    genericFormularyId = json['genericFormularyId'];
    homeMedFrom = json['homeMedFrom'];
    hospitalGroupId = json['hospitalGroupId'];
    hospitalId = json['hospitalId'];
    id = json['id'];
    isActive = json['isActive'];
    isEHRIPReconciled = json['isEHRIPReconciled'];
    isEHROPReconciled = json['isEHROPReconciled'];
    isERIPReconciled = json['isERIPReconciled'];
    isFreeText = json['isFreeText'];
    isReconciled = json['isReconciled'];
    isUnknownDetail = json['isUnknownDetail'];
    lastUpdatedTime = json['lastUpdatedTime'];
    patientId = json['patientId'];
    patientPomrId = json['patientPomrId'];
    prescribeTypeAlias = json['prescribeTypeAlias'];
    prescribedItemId = json['prescribedItemId'];
    prescribedItemName = json['prescribedItemName'];
    remarks = json['remarks'];
    routeId = json['routeId'];
    routeString = json['routeString'];
    rowVersion = json['rowVersion'];
    sentence = json['sentence'];
    strengthId = json['strengthId'];
    strengthString = json['strengthString'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.personalizationEntity != null) {
      data['PersonalizationEntity'] =
          this.personalizationEntity!.map((v) => v.toJson()).toList();
    }
    data['appointmentId'] = this.appointmentId;
    data['clinicGroupId'] = this.clinicGroupId;
    data['clinicId'] = this.clinicId;
    data['createdTime'] = this.createdTime;
    data['doseQuantity'] = this.doseQuantity;
    data['formularyName'] = this.formularyName;
    data['frequencyId'] = this.frequencyId;
    data['frequencyString'] = this.frequencyString;
    data['genericFormularyId'] = this.genericFormularyId;
    data['homeMedFrom'] = this.homeMedFrom;
    data['hospitalGroupId'] = this.hospitalGroupId;
    data['hospitalId'] = this.hospitalId;
    data['id'] = this.id;
    data['isActive'] = this.isActive;
    data['isEHRIPReconciled'] = this.isEHRIPReconciled;
    data['isEHROPReconciled'] = this.isEHROPReconciled;
    data['isERIPReconciled'] = this.isERIPReconciled;
    data['isFreeText'] = this.isFreeText;
    data['isReconciled'] = this.isReconciled;
    data['isUnknownDetail'] = this.isUnknownDetail;
    data['lastUpdatedTime'] = this.lastUpdatedTime;
    data['patientId'] = this.patientId;
    data['patientPomrId'] = this.patientPomrId;
    data['prescribeTypeAlias'] = this.prescribeTypeAlias;
    data['prescribedItemId'] = this.prescribedItemId;
    data['prescribedItemName'] = this.prescribedItemName;
    data['remarks'] = this.remarks;
    data['routeId'] = this.routeId;
    data['routeString'] = this.routeString;
    data['rowVersion'] = this.rowVersion;
    data['sentence'] = this.sentence;
    data['strengthId'] = this.strengthId;
    data['strengthString'] = this.strengthString;
    return data;
  }
}
