# File lib/sprockets/caching.rb, line 9
    def asset_from_hash(hash)
      return unless hash.is_a?(Hash)
      case hash['class']
      when 'BundledAsset'
        BundledAsset.from_hash(self, hash)
      when 'StaticAsset'
        StaticAsset.from_hash(self, hash)
      else
        nil
      end
    rescue Exception => e
      logger.debug "Cache for Asset (#{hash['logical_path']}) is stale"
      logger.debug e
      nil
    end