MaxiCodeEncodeMode.fromJson constructor
MaxiCodeEncodeMode.fromJson(
- dynamic data
Creates a MaxiCodeEncodeMode instance from a JSON representation.
Implementation
MaxiCodeEncodeMode.fromJson(dynamic data) {
switch (data) {
case "Auto":
case "Bytes":
case "ExtendedCodetext":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}