toJson method
Implementation
Map<String, dynamic> toJson() {
final emailAddress = this.emailAddress;
final contactNotes = this.contactNotes;
final phoneNumber = this.phoneNumber;
return {
'EmailAddress': emailAddress,
if (contactNotes != null) 'ContactNotes': contactNotes,
if (phoneNumber != null) 'PhoneNumber': phoneNumber,
};
}