'Return a Project object from the JSON-response dictionary.
:param  project: The dictionary describing the project.
:type   project: ``dict``
:return: Project object
:rtype: :class:`GCEProject`'

def _to_project(self, project):

    extra = {}
    extra['selfLink'] = project.get('selfLink')
    extra['creationTimestamp'] = project.get('creationTimestamp')
    extra['description'] = project.get('description')
    metadata = project['commonInstanceMetadata'].get('items')
    if ('commonInstanceMetadata' in project):
        extra['commonInstanceMetadata'] = project['commonInstanceMetadata']
    if ('usageExportLocation' in project):
        extra['usageExportLocation'] = project['usageExportLocation']
    return GCEProject(id=project['id'], name=project['name'], metadata=metadata, quotas=project.get('quotas'), driver=self, extra=extra)
