#NEWLINE# @ classmethod #NEWLINE# def convert_2_object( cls , dic , options , namedoptions ) : #NEWLINE# #INDENT# names = dic [ 'names' ] #NEWLINE# cls_name = dic [ '__class__' ] #NEWLINE# assert ( cls_name == 'Option' ) #NEWLINE# default = dic [ 'default' ] #NEWLINE# ref_value = dic [ 'ref' ] #NEWLINE# ref = ( None if ( ref_value is None ) else Unit . convert_2_object ( ref_value , options , namedoptions ) ) #NEWLINE# return cls ( * names , ** { #NEWLINE# #INDENT# 'default' : dic , #NEWLINE# 'ref' : ref , #NEWLINE# #UNINDENT# } )