toMap method
Converts the contact to a map
This map is used to invoke the corresponding native methods
Implementation
Map<String, String?> toMap() {
return {
'firstname': firstname,
'lastname': lastname,
'company': company,
'phone': phone,
'email': email,
};
}