withData method
Sets the interaction data for generic interactions.
This clears any previously set payload and creates a GenericInteraction.
Implementation
InteractionBuilder<T> withData(Map<String, dynamic> data) {
_data = data;
_payload = null; // Clear payload when setting data
return this;
}