QRErrorLevel.fromJson constructor
QRErrorLevel.fromJson(
- dynamic data
Implementation
QRErrorLevel.fromJson(dynamic data) {
switch (data) {
case "LevelL":
value = data;
break;
case "LevelM":
value = data;
break;
case "LevelQ":
value = data;
break;
case "LevelH":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}