Skip to content

Source Type

immichpy.client.generated.models.source_type.SourceType

Bases: str, Enum

Face detection source type

from_json classmethod

from_json(json_str: str) -> Self

Create an instance of SourceType from a JSON string

Source code in immichpy/client/generated/models/source_type.py
32
33
34
35
@classmethod
def from_json(cls, json_str: str) -> Self:
    """Create an instance of SourceType from a JSON string"""
    return cls(json.loads(json_str))