def GetCodeTypeFromDictionary(self, def_dict):
    json_type = def_dict.get('type', 'string')
    json_format = def_dict.get('format')

    datatype_and_imports = self._type_map.get((json_type, json_format))
    if datatype_and_imports:
      # If there is an entry in the type format to datatype and imports
      # dictionary set it as the native format.
      native_format = datatype_and_imports[0]
    else:
      # Could not find it in the dictionary, set it to the json type.
      native_format = utilities.CamelCase(json_type)
    return native_format
Convert a json schema type to a suitable Java type name.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/java_generator.py/JavaLanguageModel.GetCodeTypeFromDictionary