#NEWLINE# @ classmethod #NEWLINE# def from_doc( cls , doc ) : #NEWLINE# #INDENT# '\n        Convert a dictionary (from to_doc) back to its\n        native ObjectModel type\n\n        @param doc: dict\n        ' #NEWLINE# tmp_doc = deepcopy ( doc ) #NEWLINE# del tmp_doc [ '_metadata' ] #NEWLINE# ( operator , doc_list ) = tmp_doc . items ( ) [ 0 ] #NEWLINE# target_list = [ ] #NEWLINE# for _doc in doc_list : #NEWLINE# #INDENT# if ( _doc [ '_metadata' ] [ 'cls' ] == 'TargetingCriterion' ) : #NEWLINE# #INDENT# target_list . append ( TargetingCriterion . from_doc ( _doc ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target_list . append ( ObjectModel . from_doc ( _doc ) ) #NEWLINE# #UNINDENT# #UNINDENT# return cls ( target_list , tmp_doc )