'Convert all the properties of an ``Application`` instance to a
``dict`` representing a single application entry in Flocker\'s
application configuration YAML format.
:returns: A ``dict`` containing the application\'s converted properties.'

def convert(self):

    config = dict()
    config[u'image'] = self.convert_image()
    ports = self.convert_ports()
    if ports:
        config[u'ports'] = ports
    links = self.convert_links()
    if links:
        config[u'links'] = links
    environment = self.convert_environment()
    if environment:
        config[u'environment'] = environment
    volume = self.convert_volume()
    if volume:
        config[u'volume'] = volume
    config[u'restart_policy'] = self.convert_restart_policy()
    return config
