notificationTypeFromString function

PushNotificationType notificationTypeFromString(
  1. String value
)

Implementation

PushNotificationType notificationTypeFromString(String value) {
  return PushNotificationType.values.firstWhere(
      (e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}