Checks if the provided object is a valid PalletEvent.

A PalletEvent is expected to have the following properties:

  • pallet: A string representing the name of the pallet associated with the event.
  • palletEvent: An object or string representing the details of the pallet event.

This function validates the presence and type of these properties in the provided object.