fromValue static method

AlertPolicySeverity fromValue(
  1. String value
)

Implementation

static AlertPolicySeverity fromValue(String value) {
  for (final item in AlertPolicySeverity.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown AlertPolicySeverity value: $value');
}