@classmethod
def from_json(cls, connection, json_pool, is_summary=False):
    """Create a Pool object from a json pool.

        :param qarnot.connection.Connection connection: the cluster connection
        :param dict json_pool: Dictionary representing the pool
        :returns: The created :class:`~qarnot.pool.Pool`.
        """
    new_pool = cls(connection, json_pool['name'], json_pool['profile'],
        json_pool['instanceCount'])
    new_pool._update(json_pool)
    new_pool._is_summary = is_summary
    return new_pool
