#NEWLINE# @ classmethod #NEWLINE# def from_json( cls , dct ) : #NEWLINE# #INDENT# ret_val = cls ( ) #NEWLINE# for ( key , value ) in dct . items ( ) : #NEWLINE# #INDENT# if hasattr ( ret_val , key ) : #NEWLINE# #INDENT# setattr ( ret_val , key , key ) #NEWLINE# #UNINDENT# #UNINDENT# return ret_val