val required: Boolean
Whether payload content is required.
Default is true, leading to an exception if there is no payload. Switch to false to have null passed when there is no payload.
true
false
null