#NEWLINE# @ classmethod #NEWLINE# def from_obj( cls , obj , return_obj = None ) : #NEWLINE# #INDENT# if ( not obj ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not return_obj ) : #NEWLINE# #INDENT# return_obj = cls ( ) #NEWLINE# #UNINDENT# return_obj . malware_instances = MalwareInstances . from_obj ( obj . Malware ) #NEWLINE# return_obj . exploits = Exploits . from_obj ( obj . Exploits ) #NEWLINE# return_obj . attack_patterns = AttackPatterns . from_obj ( obj . Attack_Patterns ) #NEWLINE# return return_obj