fromJson static method

BloomErrorLevel fromJson(
  1. String value
)

Parses error level from string value.

Implementation

static BloomErrorLevel fromJson(String value) {
  return BloomErrorLevel.values.firstWhere(
    (e) => e.name.toLowerCase() == value.toLowerCase(),
    orElse: () => BloomErrorLevel.error,
  );
}