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)
Creates a PrimitiveDataType from a JSON dictionary.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/data_types.py/CreatePrimitiveDataType