class GetMedicalInstructions {
  dynamic propertyChanged;
  int? admissionRequestNoField;
  String? clinicNameField;
  String? doctorNameField;
  String? expectedAdmissionDateField;
  List<MedicaLInstructionsField>? medicaLInstructionsField;
  dynamic medicalInstructionsXMLField;
  String? medicalRemarksField;
  int? projectIdField;
  String? projectNameField;
  String? setupIdField;

  GetMedicalInstructions(
      {this.propertyChanged,
      this.admissionRequestNoField,
      this.clinicNameField,
      this.doctorNameField,
      this.expectedAdmissionDateField,
      this.medicaLInstructionsField,
      this.medicalInstructionsXMLField,
      this.medicalRemarksField,
      this.projectIdField,
      this.projectNameField,
      this.setupIdField});

  GetMedicalInstructions.fromJson(Map<String, dynamic> json) {
    propertyChanged = json['PropertyChanged'];
    admissionRequestNoField = json['admissionRequestNoField'];
    clinicNameField = json['clinicNameField'];
    doctorNameField = json['doctorNameField'];
    expectedAdmissionDateField = json['expectedAdmissionDateField'];
    if (json['medicaLInstructions'] != null) {
      medicaLInstructionsField = <MedicaLInstructionsField>[];
      json['medicaLInstructions'].forEach((v) {
        medicaLInstructionsField!.add(new MedicaLInstructionsField.fromJson(v));
      });
    }
    medicalInstructionsXMLField = json['medicalInstructionsXMLField'];
    medicalRemarksField = json['medicalRemarksField'];
    projectIdField = json['projectIdField'];
    projectNameField = json['projectNameField'];
    setupIdField = json['setupIdField'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['PropertyChanged'] = this.propertyChanged;
    data['admissionRequestNoField'] = this.admissionRequestNoField;
    data['clinicNameField'] = this.clinicNameField;
    data['doctorNameField'] = this.doctorNameField;
    data['expectedAdmissionDateField'] = this.expectedAdmissionDateField;
    if (this.medicaLInstructionsField != null) {
      data['medicaLInstructionsField'] = this.medicaLInstructionsField!.map((v) => v.toJson()).toList();
    }
    data['medicalInstructionsXMLField'] = this.medicalInstructionsXMLField;
    data['medicalRemarksField'] = this.medicalRemarksField;
    data['projectIdField'] = this.projectIdField;
    data['projectNameField'] = this.projectNameField;
    data['setupIdField'] = this.setupIdField;
    return data;
  }
}

class MedicaLInstructionsField {
  Null propertyChanged;
  String? descriptionField;
  int? parameterCodeField;

  MedicaLInstructionsField({this.propertyChanged, this.descriptionField, this.parameterCodeField});

  MedicaLInstructionsField.fromJson(Map<String, dynamic> json) {
    propertyChanged = json['PropertyChanged'];
    descriptionField = json['description'];
    parameterCodeField = json['parameterCodeField'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['PropertyChanged'] = this.propertyChanged;
    data['descriptionField'] = this.descriptionField;
    data['parameterCodeField'] = this.parameterCodeField;
    return data;
  }
}
