Pdf417CompactionMode.fromJson constructor

Pdf417CompactionMode.fromJson(
  1. dynamic data
)

Creates a Pdf417CompactionMode instance from a JSON representation.

Implementation

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