fromStringToEnum static method

LogLevel fromStringToEnum(
  1. String? type
)

String to LogLevel

Implementation

static LogLevel fromStringToEnum(String? type) {
  return LogLevel.values.firstWhere((e) => e.toString() == type);
}