# coding: utf-8

"""
    Pinterest REST API

    Pinterest's REST API

    The version of the OpenAPI document: 5.23.0
    Contact: blah+oapicf@cliffano.com
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class ConversionTagType(str, Enum):
    """
    conversion tag type
    """

    """
    allowed enum values
    """
    PAGE_LOAD = 'PAGE_LOAD'
    UNKNOWN = 'UNKNOWN'
    INITIALIZED = 'INITIALIZED'
    PAGE_VISIT = 'PAGE_VISIT'
    SIGNUP = 'SIGNUP'
    CHECKOUT = 'CHECKOUT'
    CUSTOM = 'CUSTOM'
    VIEW_CATEGORY = 'VIEW_CATEGORY'
    SEARCH = 'SEARCH'
    ADD_TO_CART = 'ADD_TO_CART'
    WATCH_VIDEO = 'WATCH_VIDEO'
    LEAD = 'LEAD'
    APP_INSTALL = 'APP_INSTALL'
    WEB_SESSION = 'WEB_SESSION'
    EXTERNAL_MEASUREMENT = 'EXTERNAL_MEASUREMENT'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of ConversionTagType from a JSON string"""
        return cls(json.loads(json_str))


