MaxiCodeMode.fromJson constructor
MaxiCodeMode.fromJson(
- dynamic data
Implementation
MaxiCodeMode.fromJson(dynamic data) {
switch (data) {
case "Mode2":
value = data;
break;
case "Mode3":
value = data;
break;
case "Mode4":
value = data;
break;
case "Mode5":
value = data;
break;
case "Mode6":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}