

def GetCodeTypeFromDictionary(self, def_dict):
    "Convert a json schema type to a suitable Java type name.\n\n    Overrides the default.\n\n    Args:\n      def_dict: (dict) A dictionary describing Json schema for this Property.\n    Returns:\n      A name suitable for use as a class in the generator's target language.\n    "
    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:
        native_format = datatype
    else:
        native_format = utilities.CamelCase(json_type)
    return native_format

dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/java_generator.py Java14LanguageModel.GetCodeTypeFromDictionary/original