ChecksumValidation.fromJson constructor
ChecksumValidation.fromJson(
- dynamic data
Implementation
ChecksumValidation.fromJson(dynamic data) {
switch (data) {
case "Default":
value = data;
break;
case "On":
value = data;
break;
case "Off":
value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}