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