# 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 Language(str, Enum):
    """
    Language code, which is among the official ISO 639-1 language list.
    """

    """
    allowed enum values
    """
    AM = 'AM'
    AR = 'AR'
    AZ = 'AZ'
    BG = 'BG'
    BN = 'BN'
    BS = 'BS'
    CA = 'CA'
    CS = 'CS'
    DA = 'DA'
    DV = 'DV'
    DZ = 'DZ'
    DE = 'DE'
    EL = 'EL'
    EN = 'EN'
    ES = 'ES'
    ET = 'ET'
    FA = 'FA'
    FI = 'FI'
    FR = 'FR'
    HE = 'HE'
    HI = 'HI'
    HR = 'HR'
    HU = 'HU'
    HY = 'HY'
    ID = 'ID'
    IN = 'IN'
    IS = 'IS'
    IT = 'IT'
    IW = 'IW'
    JA = 'JA'
    KA = 'KA'
    KM = 'KM'
    KO = 'KO'
    LO = 'LO'
    LT = 'LT'
    LV = 'LV'
    MK = 'MK'
    MN = 'MN'
    MS = 'MS'
    MY = 'MY'
    NB = 'NB'
    NE = 'NE'
    NL = 'NL'
    NO = 'NO'
    PL = 'PL'
    PT = 'PT'
    RO = 'RO'
    RU = 'RU'
    SK = 'SK'
    SL = 'SL'
    SQ = 'SQ'
    SR = 'SR'
    SV = 'SV'
    TL = 'TL'
    UK = 'UK'
    VI = 'VI'
    TE = 'TE'
    TH = 'TH'
    TR = 'TR'
    XX = 'XX'
    ZH = 'ZH'

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


