'Return a Route object from the JSON-response dictionary.
:param  route: The dictionary describing the route.
:type   route: ``dict``
:return: Route object
:rtype: :class:`GCERoute`'

def _to_route(self, route):

    extra = {}
    extra['selfLink'] = route.get('selfLink')
    extra['description'] = route.get('description')
    extra['creationTimestamp'] = route.get('creationTimestamp')
    network = route.get('network')
    priority = route.get('priority')
    if ('nextHopInstance' in route):
        extra['nextHopInstance'] = route['nextHopInstance']
    if ('nextHopIp' in route):
        extra['nextHopIp'] = route['nextHopIp']
    if ('nextHopNetwork' in route):
        extra['nextHopNetwork'] = route['nextHopNetwork']
    if ('nextHopGateway' in route):
        extra['nextHopGateway'] = route['nextHopGateway']
    if ('warnings' in route):
        extra['warnings'] = route['warnings']
    return GCERoute(id=route['id'], name=route['name'], dest_range=route.get('destRange'), priority=priority, network=network, tags=route.get('tags'), driver=self, extra=extra)
