lib/graphql/static_validation/rules/directives_are_in_valid_locations_error.rb
def to_h
        extensions = {
          "code" => code,
          "targetName" => target_name
        }.tap { |h| h["name"] = name unless name.nil? }

        super.merge({
          "extensions" => extensions
        })
      end
# A hash representation of this Message
A hash representation of this Message
A hash representation of this Message
def to_h
        extensions = {
          "code" => code,
          "targetName" => target_name
        }.tap { |h| h["name"] = name unless name.nil? }
        super.merge({
          "extensions" => extensions
        })
      end
def to_h extensions = { "code" => code , "targetName" => target_name } . tap { | h | h [ "name" ] = name unless name . nil? } super . merge ( { "extensions" => extensions } ) end
A hash representation of this Message
A hash representation of this Message