code: function _getErrorCorrectLevel(ecl) {
      switch (ecl) {
          case "L":
            return QRErrorCorrectLevel.L;
  
          case "M":
            return QRErrorCorrectLevel.M;
  
          case "Q":
            return QRErrorCorrectLevel.Q;
  
          case "H":
            return QRErrorCorrectLevel.H;
  
          default:
            throw new Error("Unknown error correction level: " + ecl);
        }
    }
docs: Gets the error correction level