You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: item_builder.rb
    path of file: ./repos/thinreports-generator/lib/thinreports/section_report/builder
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative 'stack_view_builder'

module Thinreports
  module SectionRepor
    
        def build_params(params)
          return {} unless params

          case params
          when Hash
            params
          when Proc
            params.call(Context.new(parent_schema))
          else
            { value: params }
          end