code: def _query_param_from_api_repr(resource):
      
      qp_type = resource["parameterType"]
      if "arrayType" in qp_type:
          klass = ArrayQueryParameter
      elif "structTypes" in qp_type:
          klass = StructQueryParameter
      else:
          klass = ScalarQueryParameter
      return klass.from_api_repr(resource)
docs: Helper:  construct concrete query parameter from JSON resource.