EnableChecksum.fromJson constructor

EnableChecksum.fromJson(
  1. dynamic data
)

Implementation

EnableChecksum.fromJson(dynamic data) {
  switch (data) {
    case "Default":
      value = data;
      break;
    case "Yes":
      value = data;
      break;
    case "No":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}