Pdf417CompactionMode.fromJson constructor

Pdf417CompactionMode.fromJson(
  1. dynamic data
)

Implementation

Pdf417CompactionMode.fromJson(dynamic data) {
  switch (data) {
    case "Auto":
      value = data;
      break;
    case "Text":
      value = data;
      break;
    case "Numeric":
      value = data;
      break;
    case "Binary":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}