import 'package:doctor_app_flutter/models/SOAP/master_key_model.dart'; class MySelectedAssessment { MasterKeyModel selectedICD; MasterKeyModel selectedDiagnosisCondition; MasterKeyModel selectedDiagnosisType; String remark; int appointmentId; MySelectedAssessment( {this.selectedICD, this.selectedDiagnosisCondition, this.selectedDiagnosisType, this.remark, this.appointmentId}); MySelectedAssessment.fromJson(Map json) { selectedICD = json['selectedICD'] != null ? new MasterKeyModel.fromJson(json['selectedICD']) : null; selectedDiagnosisCondition = json['selectedDiagnosisCondition'] != null ? new MasterKeyModel.fromJson(json['selectedDiagnosisCondition']) : null; selectedDiagnosisType = json['selectedDiagnosisType'] != null ? new MasterKeyModel.fromJson(json['selectedDiagnosisType']) : null; remark = json['remark']; appointmentId = json['appointmentId']; } Map toJson() { final Map data = new Map(); if (this.selectedICD != null) { data['selectedICD'] = this.selectedICD.toJson(); } if (this.selectedDiagnosisCondition != null) { data['selectedICD'] = this.selectedDiagnosisCondition.toJson(); } if (this.selectedDiagnosisType != null) { data['selectedICD'] = this.selectedDiagnosisType.toJson(); } data['remark'] = this.remark; data['appointmentId'] = this.appointmentId; return data; } }