toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
if (rev != null) {
json[r'rev'] = rev;
}
if (deletionDate != null) {
json[r'deletionDate'] = deletionDate;
}
json[r'name'] = name;
json[r'privateInsurance'] = privateInsurance;
json[r'hospitalisationInsurance'] = hospitalisationInsurance;
json[r'ambulatoryInsurance'] = ambulatoryInsurance;
if (code != null) {
json[r'code'] = code;
}
if (agreementNumber != null) {
json[r'agreementNumber'] = agreementNumber;
}
if (parent != null) {
json[r'parent'] = parent;
}
json[r'address'] = address;
return json;
}