HanXinVersion.fromJson constructor
HanXinVersion.fromJson(
- dynamic data
Creates a HanXinVersion instance from a JSON representation.
Implementation
HanXinVersion.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 "Version41":
case "Version42":
case "Version43":
case "Version44":
case "Version45":
case "Version46":
case "Version47":
case "Version48":
case "Version49":
case "Version50":
case "Version51":
case "Version52":
case "Version53":
case "Version54":
case "Version55":
case "Version56":
case "Version57":
case "Version58":
case "Version59":
case "Version60":
case "Version61":
case "Version62":
case "Version63":
case "Version64":
case "Version65":
case "Version66":
case "Version67":
case "Version68":
case "Version69":
case "Version70":
case "Version71":
case "Version72":
case "Version73":
case "Version74":
case "Version75":
case "Version76":
case "Version77":
case "Version78":
case "Version79":
case "Version80":
case "Version81":
case "Version82":
case "Version83":
case "Version84":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}