# File lib/aws/simple_workflow/history_event.rb, line 209
        def to_h
          @data.inject({}) do |h,(key,value)|
            value = _cast(key,value)
            if value.is_a?(Array)
              value = value.map{|v| v.is_a?(Attributes) ? v.to_h : v }
            end
            h[_snake_case(key)] = value.is_a?(Attributes) ? value.to_h : value
            h
          end
        end