code: def toDict(self):
  		
  
  		# Init the dictionary we will return
  		dRet = {
  			"__type__": self._type
  		}
  
  		# If there is a regex associated, add it
  		if self._regex:
  			dRet['__regex__'] = str(self._regex)
  
  		# Else if there were options associated, add them
  		elif self._options:
  			dRet['__options__'] = self._options
  
  		# Else check for min and max and add if either are found
  		else:
  			if self._minimum:
  				dRet['__minimum__'] = self._minimum
  			if self._maximum:
  				dRet['__maximum__'] = self._maximum
  
  		# Get the parents dict and add it to the return
  		dRet.update(super(Node,self).toDict())
  
  		# Return
  		return dRet
docs: To Dict
  
  		Returns the Node as a dictionary in the same format as is used in
  		constructing it
  
  		Returns:
  			dict