toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'beginDate'] = beginDate;
json[r'endDate'] = endDate;
if (author != null) {
json[r'author'] = author;
}
if (patient != null) {
json[r'patient'] = patient;
}
json[r'patientLanguage'] = patientLanguage;
json[r'incapacityType'] = incapacityType;
json[r'incapacityReason'] = incapacityReason;
json[r'outOfHomeAllowed'] = outOfHomeAllowed;
if (certificateDate != null) {
json[r'certificateDate'] = certificateDate;
}
if (contentDate != null) {
json[r'contentDate'] = contentDate;
}
if (diagnosisICPC != null) {
json[r'diagnosisICPC'] = diagnosisICPC;
}
if (diagnosisICD != null) {
json[r'diagnosisICD'] = diagnosisICD;
}
if (diagnosisDescr != null) {
json[r'diagnosisDescr'] = diagnosisDescr;
}
return json;
}