(def_dict, api, wire_name, parent=None)
return PrimitiveDataType(def_dict, api, parent)
Creates a PrimitiveDataType from a JSON dictionary.

  Creates a primitive built in type or an enum for a blob of json.

  Args:
    def_dict: (dict) The discovery dictionary for this element.
    api: (Api) The Api instance which owns this element.
    wire_name: (str) The identifier used in the wire protocol for this object.
    parent: (TemplateObject) The parent of this object.
  Returns:
    (PrimitiveDataType) A data type.
Creates a PrimitiveDataType from a JSON dictionary.
Creates a PrimitiveDataType from a JSON dictionary .
def CreatePrimitiveDataType(def_dict, api, wire_name, parent=None):
  """Creates a PrimitiveDataType from a JSON dictionary.

  Creates a primitive built in type or an enum for a blob of json.

  Args:
    def_dict: (dict) The discovery dictionary for this element.
    api: (Api) The Api instance which owns this element.
    wire_name: (str) The identifier used in the wire protocol for this object.
    parent: (TemplateObject) The parent of this object.
  Returns:
    (PrimitiveDataType) A data type.
  """
  if def_dict.get('enum'):
    return Enum(def_dict,
                api,
                wire_name,
                None,
                None,
                parent)
  return PrimitiveDataType(def_dict, api, parent)
def CreatePrimitiveDataType ( def_dict , api , wire_name , parent = None ) : if def_dict . get ( 'enum' ) : return Enum ( def_dict , api , wire_name , None , None , parent ) return PrimitiveDataType ( def_dict , api , parent )