#NEWLINE# @ classmethod #NEWLINE# def from_dict( cls , dict_repr , return_obj = None ) : #NEWLINE# #INDENT# if ( not dict_repr ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not return_obj ) : #NEWLINE# #INDENT# return_obj = cls ( ) #NEWLINE# #UNINDENT# get = dict_repr . get #NEWLINE# return_obj . malware_instances = MalwareInstances . from_dict ( get ( 'malware_instances' ) ) #NEWLINE# return_obj . exploits = Exploits . from_dict ( get ( 'exploits' ) ) #NEWLINE# return_obj . attack_patterns = AttackPatterns . from_dict ( get ( 'attack_patterns' ) ) #NEWLINE# return return_obj