parameters: (self, localized=True)
return_statement: return docDict
docstring: Return a dict representation of the document (copy).
  
          Removes _rev key.
docstring_summary: Return a dict representation of the document (copy).
docstring_tokens: Return a dict representation of the document ( copy ) .
function: def toDict(self, localized=True):
          '''
          Return a dict representation of the document (copy).
  
          Removes _rev key.
          '''
  
          docDict = self.__dict__["_doc"].copy()
  
          if "_rev" in docDict:
              del docDict["_rev"]
  
          if localized and docDict.get("date", None):
  
              utc_date = get_date_from_db_date(docDict.get("date"))
              docDict["date"] = get_db_date_from_date(utc_date)
  
          return docDict
function_tokens: def toDict ( self , localized = True ) : docDict = self . __dict__ [ "_doc" ] . copy ( ) if "_rev" in docDict : del docDict [ "_rev" ] if localized and docDict . get ( "date" , None ) : utc_date = get_date_from_db_date ( docDict . get ( "date" ) ) docDict [ "date" ] = get_db_date_from_date ( utc_date ) return docDict