try_parse method

On this page

try_parse

Returns the Barcode type matching the given parsing type name.

If the name is unknown, the method returns None instead of raising an exception.

def try_parse(cls, parsing_type):
    ...
Parameter Type Description
parsing_type str Source string of barcode type name.

Returns: BarcodeType: The matching BarcodeType instance, or None if not found.

See Also

On this page