ChecksumValidation.fromJson constructor

ChecksumValidation.fromJson(
  1. 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');
  }
}