(self, def_dict)
return native_format
Convert a json schema type to a suitable C++ type name.

    Overrides the default.

    Args:
      def_dict: (dict) A dictionary describing Json schema for this Property.
    Returns:
      A name suitable for use as a class in the generator's target language.
Convert a json schema type to a suitable C++ type name.
Convert a json schema type to a suitable C ++ type name .
def GetCodeTypeFromDictionary(self, def_dict):
    """Convert a json schema type to a suitable C++ type name.

    Overrides the default.

    Args:
      def_dict: (dict) A dictionary describing Json schema for this Property.
    Returns:
      A name suitable for use as a class in the generator's target language.
    """
    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
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