toJson method
Implementation
Map<String, dynamic> toJson() {
final email = this.email;
final firstName = this.firstName;
final lastName = this.lastName;
return {
if (email != null) 'Email': email,
if (firstName != null) 'FirstName': firstName,
if (lastName != null) 'LastName': lastName,
};
}