uyavaDiagnosticLevelFromWire function

UyavaDiagnosticLevel? uyavaDiagnosticLevelFromWire(
  1. String? value
)

Implementation

UyavaDiagnosticLevel? uyavaDiagnosticLevelFromWire(String? value) {
  if (value == null || value.isEmpty) return null;
  for (final level in UyavaDiagnosticLevel.values) {
    if (level.name == value) return level;
  }
  return null;
}