QREncodeMode.fromJson constructor
QREncodeMode.fromJson(
- dynamic data
Implementation
QREncodeMode.fromJson(dynamic data) {
switch (data) {
case "Auto":
value = data;
break;
case "Bytes":
value = data;
break;
case "Utf8BOM":
value = data;
break;
case "Utf16BEBOM":
value = data;
break;
case "ECIEncoding":
value = data;
break;
case "ExtendedCodetext":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}