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