fromJson static method

Implementation

static CockpitRuntimeEventSeverity fromJson(Object? json) {
  return values.firstWhere(
    (value) => value.jsonValue == json,
    orElse: () => throw ArgumentError.value(
      json,
      'json',
      'Unsupported runtime event severity.',
    ),
  );
}