toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
if (title != null) {
json[r'title'] = title;
}
if (comment != null) {
json[r'comment'] = comment;
}
if (receptionDate != null) {
json[r'receptionDate'] = receptionDate;
}
if (processingDate != null) {
json[r'processingDate'] = processingDate;
}
if (processer != null) {
json[r'processer'] = processer;
}
if (cancellationDate != null) {
json[r'cancellationDate'] = cancellationDate;
}
if (canceller != null) {
json[r'canceller'] = canceller;
}
if (cancellationReason != null) {
json[r'cancellationReason'] = cancellationReason;
}
if (cancellationNote != null) {
json[r'cancellationNote'] = cancellationNote;
}
if (status != null) {
json[r'status'] = status;
}
if (homeVisit != null) {
json[r'homeVisit'] = homeVisit;
}
if (municipality != null) {
json[r'municipality'] = municipality;
}
if (town != null) {
json[r'town'] = town;
}
if (zipCode != null) {
json[r'zipCode'] = zipCode;
}
if (street != null) {
json[r'street'] = street;
}
if (building != null) {
json[r'building'] = building;
}
if (buildingNumber != null) {
json[r'buildingNumber'] = buildingNumber;
}
if (doorbellName != null) {
json[r'doorbellName'] = doorbellName;
}
if (floor != null) {
json[r'floor'] = floor;
}
if (letterBox != null) {
json[r'letterBox'] = letterBox;
}
if (notesOps != null) {
json[r'notesOps'] = notesOps;
}
if (notesContact != null) {
json[r'notesContact'] = notesContact;
}
if (latitude != null) {
json[r'latitude'] = latitude;
}
if (longitude != null) {
json[r'longitude'] = longitude;
}
if (type != null) {
json[r'type'] = type;
}
if (emergency != null) {
json[r'emergency'] = emergency;
}
if (phoneNumber != null) {
json[r'phoneNumber'] = phoneNumber;
}
if (patientId != null) {
json[r'patientId'] = patientId;
}
if (patientLastName != null) {
json[r'patientLastName'] = patientLastName;
}
if (patientFirstName != null) {
json[r'patientFirstName'] = patientFirstName;
}
if (description != null) {
json[r'description'] = description;
}
if (interventionCode != null) {
json[r'interventionCode'] = interventionCode;
}
return json;
}