valueOf static method

Implementation

static NotificationRegisterPushPlatform? valueOf(final String? value) {
  if (value == null) return null;
  final knownValue = KnownNotificationRegisterPushPlatform.valueOf(value);

  return knownValue != null
      ? NotificationRegisterPushPlatform.knownValue(data: knownValue)
      : NotificationRegisterPushPlatform.unknown(data: value);
}