mappedCustomEventToken function

String? mappedCustomEventToken(
  1. String eventName,
  2. JournifyAdjustSettings settings
)

Implementation

String? mappedCustomEventToken(
    String eventName, JournifyAdjustSettings settings) {
  for (final mapping in settings.eventMappings) {
    if (mapping.eventName == eventName) {
      return mapping.destinationEventKey;
    }
  }
  return null;
}