sendProductEvent method
Create ProductEvent object and pass there attributes You want to collect ProductEvent requires productId and ProductEventType Pass parameters as Map. It must be parsed to simple types.
Implementation
Future<void> sendProductEvent({
required ProductEvent event,
}) async {
await _repository.sendProductEvent(event);
}