Code128Emulation.fromJson constructor

Code128Emulation.fromJson(
  1. dynamic data
)

Implementation

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