def METHOD_NAME(cls, value):
    if value == "WKT2_2019":
        # WKT2_2019 alias added in GDAL 3.2, use WKT2_2018 for compatibility
        return WktVersion.WKT2_2019
    raise ValueError(f"Invalid value for WktVersion: {value}")