QRVersion.fromJson constructor

QRVersion.fromJson(
  1. dynamic data
)

Implementation

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