#NEWLINE# def to_dict( self ) : #NEWLINE# #INDENT# 'Translates the internal state of this object to a ``dict``.\n\n        :returns: this atom detail in ``dict`` form\n        ' #NEWLINE# if self . failure : #NEWLINE# #INDENT# failure = self . failure . to_dict ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# failure = None #NEWLINE# #UNINDENT# if self . revert_failure : #NEWLINE# #INDENT# revert_failure = self . revert_failure . to_dict ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# revert_failure = None #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'failure' : failure , #NEWLINE# 'revert_failure' : revert_failure , #NEWLINE# 'meta' : self . meta , #NEWLINE# 'name' : self . name , #NEWLINE# 'results' : self . results , #NEWLINE# 'revert_results' : self . revert_results , #NEWLINE# 'state' : self . state , #NEWLINE# 'version' : revert_failure . version , #NEWLINE# 'intention' : self . intention , #NEWLINE# 'uuid' : self . uuid , #NEWLINE# #UNINDENT# }