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: qc_results_controller.rb
    path of file: ./repos/sequencescape/app/controllers/api/v2
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Api
  module V2
    # QcResultsController
    # create needs some specific code as it is not standard JSON API behaviour
    c
    
      def qc_results_params
        params
          .require(:data)
          .require(:attributes)
          .map do |p|
            ActionController::Parameters
              .new(p.to_unsafe_h)
              .permit(:barcode, :uuid, :well_location, :key, :value, :units, :cv, :assay_type, :assay_version)
          end
      end