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

    datatype = (self.TYPE_FORMAT_TO_DATATYPE.get((json_type, json_format)))
    if datatype:
      # If there is an entry in the type format to datatype
      # dictionary set it as the native format.
      native_format = datatype
    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/Java14LanguageModel.GetCodeTypeFromDictionary