toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (type != null) {
json[r'type'] = type;
}
if (healthcarePartyId != null) {
json[r'healthcarePartyId'] = healthcarePartyId;
}
json[r'sendFormats'] = sendFormats;
json[r'referralPeriods'] = referralPeriods.toList();
json[r'referral'] = referral;
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}