class_docstr: A dictionary of TrialComponentParameterValues
docstr: Converts TrialComponentParameters to dict.
  
  Args:
      parameters (TrialComponentParameters): Dictionary to convert.
  
  Returns:
      dict: Dictionary of trial component parameters in boto format.
docstr_tok: ["Converts","TrialComponentParameters","to","dict",".","Args",":","parameters","(","TrialComponentParameters",")",":","Dictionary","to","convert",".","Returns",":","dict",":","Dictionary","of","trial","component","parameters","in","boto","format","."]
code: def to_boto(cls, parameters):
      """Converts TrialComponentParameters to dict.
  
      Args:
          parameters (TrialComponentParameters): Dictionary to convert.
  
      Returns:
          dict: Dictionary of trial component parameters in boto format.
      """
      boto_map = {}
      for key, value in parameters.items():
          if isinstance(value, numbers.Number):
              boto_map[key] = {"NumberValue": value}
          else:
              boto_map[key] = {"StringValue": str(value)}
      return boto_map
  
imports: from __future__ import absolute_import
  import enum
  import numbers
  from sagemaker.apiutils import _base_types
label_desc: Use image node_id 2 for calling the TrialComponentParameters obj's underlying member method code with example usage: obj.to_boto(cls, parameters) and returns: boto_map