def to_input_hash
      HASH_SCHEMA.schema(
        map { |attr| [attr.name, attr.to_write_type] }.to_h
      )
    end
def to_input_hash
      HASH_SCHEMA.schema(
        map { |attr| [attr.name, attr.to_write_type] }.to_h
      )
    end
Return coercion function using attribute types

 This is used for `input_schema` in relations, typically commands use it
 for processing input

 @return [Dry::Types::Hash]

 @api private