#NEWLINE# @ staticmethod #NEWLINE# def from_dict( object_dict , obj = None ) : #NEWLINE# #INDENT# if ( not object_dict ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not object_dict ) : #NEWLINE# #INDENT# obj = Object ( ) #NEWLINE# #UNINDENT# obj . id_ = object_dict . get ( 'id' ) #NEWLINE# obj . idref = object_dict . get ( 'idref' ) #NEWLINE# obj . properties = ObjectProperties . from_dict ( object_dict . get ( 'properties' ) ) #NEWLINE# obj . related_objects = [ RelatedObject . from_dict ( x ) for x in object_dict . get ( 'related_objects' , [ ] ) ] #NEWLINE# obj . domain_specific_object_properties = DomainSpecificObjectProperties . from_dict ( object_dict . get ( 'domain_specific_object_properties' ) ) #NEWLINE# if obj . id_ : #NEWLINE# #INDENT# cybox . utils . cache_put ( obj ) #NEWLINE# #UNINDENT# return obj