EnableChecksum.fromJson constructor

EnableChecksum.fromJson(
  1. dynamic data
)

Creates a EnableChecksum instance from a JSON representation.

Implementation

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