class GetMedicalInstructions { dynamic propertyChanged; int? admissionRequestNoField; String? clinicNameField; String? doctorNameField; String? expectedAdmissionDateField; List? 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 json) { propertyChanged = json['PropertyChanged']; admissionRequestNoField = json['admissionRequestNoField']; clinicNameField = json['clinicNameField']; doctorNameField = json['doctorNameField']; expectedAdmissionDateField = json['expectedAdmissionDateField']; if (json['medicaLInstructions'] != null) { 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 toJson() { final Map data = new Map(); 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 json) { propertyChanged = json['PropertyChanged']; descriptionField = json['description']; parameterCodeField = json['parameterCodeField']; } Map toJson() { final Map data = new Map(); data['PropertyChanged'] = this.propertyChanged; data['descriptionField'] = this.descriptionField; data['parameterCodeField'] = this.parameterCodeField; return data; } }