# 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 ImageSource(int, Enum):
    """
    Face photo image source types: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/
    """

    """
    allowed enum values
    """
    DOCUMENT_PRINTED = 1
    DOCUMENT_RFID = 2
    LIVE = 3
    DOCUMENT_WITH_LIVE = 4
    EXTERNAL = 5
    GHOST = 6
    BARCODE = 7

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


