#NEWLINE# @ classmethod #NEWLINE# def from_item( cls , item ) : #NEWLINE# #INDENT# data = item . get ( 'data' ) #NEWLINE# if ( data and ( 'command' in data ) ) : #NEWLINE# #INDENT# return cls ( command = data [ 'command' ] , args = data [ 'args' ] , label = item [ 'label' ] , text = data [ 'text' ] ) #NEWLINE# #UNINDENT# return None