# File lib/aws/dynamo_db/types.rb, line 24
      def value_from_response(hash, options = {})
        (type, value) = hash.to_a.first
        case type
        when "S", :s
          value
        when "SS", :ss
          Set[*value]
        when "N", :n
          cast_number(value, options)
        when "NS", :ns
          Set[*value.map {|v| cast_number(v, options) }]
        when "B", :b
          cast_binary(value)
        when "BS", :bs
          Set[*value.map{|v| cast_binary(v) }]
        end
      end