code: def toDict(self):
  		
  
  		# Create the dict we will return
  		dRet = {}
  
  		# If the optional flag is set
  		if self._optional:
  			dRet['__optional__'] = True
  
  		# Add all the special fields found
  		for k in self._special.keys():
  			dRet[_specialSet % k] = self._special[k]
  
  		# Return
  		return dRet
docs: To Dictionary
  
  		Returns the basic node as a dictionary in the same format as is used in
  		constructing it
  
  		Returns:
  			dict