#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 . id_ = obj . id #NEWLINE# return_obj . title = obj . Title #NEWLINE# return_obj . descriptions = StructuredTextList . from_obj ( obj . Description ) #NEWLINE# return_obj . short_descriptions = StructuredTextList . from_obj ( obj . Short_Description ) #NEWLINE# return_obj . observable_characterization = Observables . from_obj ( obj . Observable_Characterization ) #NEWLINE# if obj . Type : #NEWLINE# #INDENT# return_obj . types = [ VocabString . from_obj ( x ) for x in obj . Type ] #NEWLINE# #UNINDENT# return return_obj