Pdf417MacroTerminator.fromJson constructor

Pdf417MacroTerminator.fromJson(
  1. dynamic data
)

Creates a Pdf417MacroTerminator instance from a JSON representation.

Implementation

Pdf417MacroTerminator.fromJson(dynamic data) {
  switch (data) {
    case "Auto":
    case "None":
    case "Set":
      _value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}