fromValue static method

AjaxRequestEventType? fromValue(
  1. String? value
)

Implementation

static AjaxRequestEventType? fromValue(String? value) {
  if (value != null) {
    try {
      return AjaxRequestEventType.values
          .firstWhere((element) => element.toValue() == value);
    } catch (e) {
      return null;
    }
  }
  return null;
}