QRVersion.fromJson constructor
QRVersion.fromJson(
- dynamic data
Creates a QRVersion instance from a JSON representation.
Implementation
QRVersion.fromJson(dynamic data) {
switch (data) {
case "Auto":
case "Version01":
case "Version02":
case "Version03":
case "Version04":
case "Version05":
case "Version06":
case "Version07":
case "Version08":
case "Version09":
case "Version10":
case "Version11":
case "Version12":
case "Version13":
case "Version14":
case "Version15":
case "Version16":
case "Version17":
case "Version18":
case "Version19":
case "Version20":
case "Version21":
case "Version22":
case "Version23":
case "Version24":
case "Version25":
case "Version26":
case "Version27":
case "Version28":
case "Version29":
case "Version30":
case "Version31":
case "Version32":
case "Version33":
case "Version34":
case "Version35":
case "Version36":
case "Version37":
case "Version38":
case "Version39":
case "Version40":
case "VersionM1":
case "VersionM2":
case "VersionM3":
case "VersionM4":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}