Code128Emulation.fromJson constructor

Code128Emulation.fromJson(
  1. dynamic data
)

Creates a Code128Emulation instance from a JSON representation.

Implementation

Code128Emulation.fromJson(dynamic data) {
  switch (data) {
    case "None":
    case "Code903":
    case "Code904":
    case "Code905":
      _value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}