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