def to_api_data(self):
data = []<EOL>for attendee in self.__attendees:<EOL><INDENT>if attendee.address:<EOL><INDENT>att_data = {<EOL>self._cc('<STR_LIT>'): {<EOL>self._cc('<STR_LIT:address>'): attendee.address,<EOL>self._cc('<STR_LIT:name>'): attendee.name<EOL>},<EOL>self._cc('<STR_LIT:type>'): self._cc(attendee.attendee_type.value)<EOL>}<EOL>data.append(att_data)<EOL><DEDENT><DEDENT>return data<EOL>
Returns a dict to communicate with the server

        :rtype: dict