Pdf417ErrorLevel.fromJson constructor
Pdf417ErrorLevel.fromJson(
- dynamic data
Implementation
Pdf417ErrorLevel.fromJson(dynamic data) {
switch (data) {
case "Level0":
value = data;
break;
case "Level1":
value = data;
break;
case "Level2":
value = data;
break;
case "Level3":
value = data;
break;
case "Level4":
value = data;
break;
case "Level5":
value = data;
break;
case "Level6":
value = data;
break;
case "Level7":
value = data;
break;
case "Level8":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}