encode(hints, contents) {
        let errorCorrectionLevel = ErrorCorrectionLevel.L;
        if (hints && hints.get(EncodeHintType.ERROR_CORRECTION) !== undefined) {
            errorCorrectionLevel = ErrorCorrectionLevel.fromString(hints.get(EncodeHintType.ERROR_CORRECTION).toString());
        }
        const code = Encoder.encode(contents, errorCorrectionLevel, hints);
        return code;
    }
/**
     * Encodes the content to a Barcode type.
     */
Encodes the content to a Barcode type.
Encodes the content to a Barcode type .
encode(hints, contents) {
        let errorCorrectionLevel = ErrorCorrectionLevel.L;
        if (hints && hints.get(EncodeHintType.ERROR_CORRECTION) !== undefined) {
            errorCorrectionLevel = ErrorCorrectionLevel.fromString(hints.get(EncodeHintType.ERROR_CORRECTION).toString());
        }
        const code = Encoder.encode(contents, errorCorrectionLevel, hints);
        return code;
    }
encode ( hints , contents ) { let errorCorrectionLevel = ErrorCorrectionLevel . L ; if ( hints && hints . get ( EncodeHintType . ERROR_CORRECTION ) !== undefined ) { errorCorrectionLevel = ErrorCorrectionLevel . fromString ( hints . get ( EncodeHintType . ERROR_CORRECTION ) . toString ( ) ) ; } const code = Encoder . encode ( contents , errorCorrectionLevel , hints ) ; return code ; }
Encodes the content to a Barcode type.
Encodes the content to a Barcode type .