toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = name;
if (image != null) json[r'image'] = image;
if (nif != null) json[r'nif'] = nif;
if (address != null) json[r'address'] = address;
if (notes != null) json[r'notes'] = notes;
if (birthDate != null) json[r'birthDate'] = birthDate!.toIso8601String();
if (contactPerson1 != null) json[r'contactPerson1'] = contactPerson1;
if (contactPerson2 != null) json[r'contactPerson2'] = contactPerson2;
return json;
}