#NEWLINE# @ classmethod #NEWLINE# def validate( cls , data ) : #NEWLINE# #INDENT# d = cls . validate_json ( data ) #NEWLINE# if ( d . get ( 'topic' ) not in consts . NOTIFICATION_TOPICS ) : #NEWLINE# #INDENT# raise errors . InvalidData ( 'Notification topic is not found or invalid' ) #NEWLINE# #UNINDENT# return cls