CodabarSymbol.fromJson constructor
CodabarSymbol.fromJson(
- dynamic data
Creates a CodabarSymbol instance from a JSON representation.
Implementation
CodabarSymbol.fromJson(dynamic data) {
switch (data) {
case "A":
case "B":
case "C":
case "D":
_value = data;
break;
default:
throw Exception('Unknown enum value to decode: $data');
}
}