Converts contact details into a map.
Returns a map with name and email in OpenAPI contact format.
Map<String, dynamic> toMap() => {'name': name, 'email': email};