code: def __convert_enum(node):
      
      name = __get_attribute(node, 'Name')
      logging.debug('Found EnumProperty named %s', name)
  
      converted_values = []
  
      for value in node.getElementsByTagName('EnumValue'):
          converted = __convert_node(value)
  
          converted['value'] = converted['name']
          converted['name'] = name
  
          # Modify flags when there is an argument child
          __with_argument(value, converted)
  
          converted_values.append(converted)
  
      return converted_values
docs: Converts an EnumProperty node to JSON format.