Code128EncodeMode.fromJson constructor
Code128EncodeMode.fromJson(
- dynamic data
Implementation
Code128EncodeMode.fromJson(dynamic data) {
switch (data) {
case "Auto":
value = data;
break;
case "CodeA":
value = data;
break;
case "CodeB":
value = data;
break;
case "CodeAB":
value = data;
break;
case "CodeC":
value = data;
break;
case "CodeAC":
value = data;
break;
case "CodeBC":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}