def to_api_data(self):
return [attachment.to_api_data() for attachment in self.__attachments if<EOL>attachment.on_cloud is False]<EOL>
Returns a dict to communicate with the server

        :rtype: dict