fromString method
Implementation
TGLogLevel fromString(String value) {
return TGLogLevel.values.firstWhere(
(logLevel) =>
logLevel.toString().split('.')[1].toUpperCase() ==
value.toUpperCase(),
orElse: () => TGLogLevel.OFF);
}