def sanitize_params(inputs)
      out = {}.with_indifferent_access
      _fields.each_pair do |field, config|
        next unless inputs.key?(field)

        out[field] = ::Subroutine::TypeCaster.cast(inputs[field], config)
      end

      out
    end
def sanitize_params(inputs)
      out = {}.with_indifferent_access
      _fields.each_pair do |field, config|
        next unless inputs.key?(field)

        out[field] = ::Subroutine::TypeCaster.cast(inputs[field], config)
      end

      out
    end
if you want to use strong parameters or something in your form object you can do so here.
 by default we just slice the inputs to the defined fields