- Wrap the fromJson() method with try-catch block and throw proper exception. - Add `publishHookEventHandlesInvalidJson()` method to test the invalid json is handled successfully.
- Wrap the fromJson() method with try-catch block and throw proper exception. - Add `publishHookEventHandlesInvalidJson()` method to test the invalid json is handled successfully.