# coding: utf-8

"""
    Generated by: https://openapi-generator.tech
"""

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


class LivenessType(int, Enum):
    """
    Liveness detection can be performed in two modes: active `0` and passive `1`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)
    """

    """
    allowed enum values
    """
    ACTIVE = 0
    PASSIVE = 1

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


