'return a service as a dict'

def create_dict(self):

    self.data['apiVersion'] = 'v1'
    self.data['kind'] = 'Route'
    self.data['metadata'] = {}
    self.data['metadata']['name'] = self.name
    self.data['metadata']['namespace'] = self.namespace
    self.data['spec'] = {}
    self.data['spec']['host'] = self.host
    if self.tls_termination:
        self.data['spec']['tls'] = {}
        self.data['spec']['tls']['termination'] = self.tls_termination
        if (self.tls_termination != 'passthrough'):
            self.data['spec']['tls']['key'] = self.key
            self.data['spec']['tls']['caCertificate'] = self.cacert
            self.data['spec']['tls']['certificate'] = self.cert
        if (self.tls_termination == 'reencrypt'):
            self.data['spec']['tls']['destinationCACertificate'] = self.destcacert
    self.data['spec']['to'] = {'kind': 'Service', 'name': self.service_name, 'weight': self.weight}
    self.data['spec']['wildcardPolicy'] = self.wildcard_policy
    if self.port:
        self.data['spec']['port'] = {}
        self.data['spec']['port']['targetPort'] = self.port
