MaxiCodeEncodeMode.fromJson constructor

MaxiCodeEncodeMode.fromJson(
  1. dynamic data
)

Implementation

MaxiCodeEncodeMode.fromJson(dynamic data) {
  switch (data) {
    case "Auto":
      value = data;
      break;
    case "Bytes":
      value = data;
      break;
    case "ExtendedCodetext":
      value = data;
      break;
    default:
      throw Exception('Unknown enum value to decode: $data');
  }
}