Checks if the provided object is a valid IEventRecord.
IEventRecord
An IEventRecord is expected to have the following properties:
phase
event
topics
This function validates the presence and type of these properties in the provided object.
The object to be checked.
true if the object is a valid IEventRecord, false otherwise.
true
false
Checks if the provided object is a valid
IEventRecord
.Remarks
An
IEventRecord
is expected to have the following properties:phase
: An object representing the phase of the event.event
: An object representing the event details.topics
: An array of topics associated with the event.This function validates the presence and type of these properties in the provided object.