code: def from_api_repr(cls, resource, client):
          
          project = cls(project_id=resource["projectId"], client=client)
          project.set_properties_from_api_repr(resource)
          return project
docs: Factory:  construct a project given its API representation.
  
          :type resource: dict
          :param resource: project resource representation returned from the API
  
          :type client: :class:`google.cloud.resource_manager.client.Client`
          :param client: The Client used with this project.
  
          :rtype: :class:`google.cloud.resource_manager.project.Project`
          :returns: The project created.