unserialize static method

BarcodeFormat? unserialize(
  1. int constant
)

Implementation

static BarcodeFormat? unserialize(int constant) {
  switch(constant) {
    case FORMAT_CODE_39:
      return BarcodeFormat.code39;
    case FORMAT_CODE_93:
      return BarcodeFormat.code93;
    case FORMAT_CODE_128:
      return BarcodeFormat.code128;
    case FORMAT_EAN_8:
      return BarcodeFormat.ean8;
    case FORMAT_EAN_13:
      return BarcodeFormat.ean13;
    case FORMAT_ITF:
      return BarcodeFormat.itf;
    case FORMAT_CODABAR:
      return BarcodeFormat.codabar;
    case FORMAT_DATAMATRIX:
      return BarcodeFormat.dataMatrix;
    case FORMAT_QR_CODE:
      return BarcodeFormat.qrCode;
    default:
      return null;
  }
}