toJSON method
Implementation
Map<String, Object?> toJSON() {
return {
EVENT_NAME: name,
EVENT_VALUE: value,
PROPERTIES: properties,
TRANSACTION_ID: transactionId,
INTERACTION_ID: interactionId,
INTERACTION_TYPE: interactionType
};
}