public static String getMessageJson ( Object message ) { VersionedMessage < ? > versionedMessage = new VersionedMessage <> ( CURRENT_MESSAGE_VERSION , message ) ; return GSON . toJson ( versionedMessage ) ; }
Get the notification message JSON from the given object .