code: def to_api_data(self):
          
          data = []
          for attendee in self.__attendees:
              if attendee.address:
                  att_data = {
                      self._cc('emailAddress'): {
                          self._cc('address'): attendee.address,
                          self._cc('name'): attendee.name
                      },
                      self._cc('type'): self._cc(attendee.attendee_type.value)
                  }
                  data.append(att_data)
          return data
docs: Returns a dict to communicate with the server
  
          :rtype: dict