#NEWLINE# @ classmethod #NEWLINE# def from_json( cls , value ) : #NEWLINE# #INDENT# if ( value not in cls . POSSIBLE_NAMES ) : #NEWLINE# #INDENT# raise jose . DeserializationError ( '{0} not recognized' . format ( cls . __name__ ) ) #NEWLINE# #UNINDENT# return cls . POSSIBLE_NAMES [ value ]