# coding: utf-8

"""
    NCBI Datasets API

    ### NCBI Datasets is a resource that lets you easily gather data from NCBI. The NCBI Datasets version 2 API is updated often to add new features, fix bugs, and enhance usability. 

    The version of the OpenAPI document: v2
    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 Ncbigsupgcolv2ChromosomeLocation(str, Enum):
    """
    Ncbigsupgcolv2ChromosomeLocation
    """

    """
    allowed enum values
    """
    LOCATION_UNKNOWN = 'LOCATION_UNKNOWN'
    APICOPLAST = 'APICOPLAST'
    CHLOROPLAST = 'CHLOROPLAST'
    CHROMATOPHORE = 'CHROMATOPHORE'
    CHROMOPLAST = 'CHROMOPLAST'
    CYANELLE = 'CYANELLE'
    HYDROGENOSOME = 'HYDROGENOSOME'
    KINETOPLAST = 'KINETOPLAST'
    LEUCOPLAST = 'LEUCOPLAST'
    MACRONUCLEAR = 'MACRONUCLEAR'
    MITOCHONDRION = 'MITOCHONDRION'
    NUCLEARPROKARYOTE = 'NUCLEARPROKARYOTE'
    NUCLEOMORPH = 'NUCLEOMORPH'
    OTHER_LOCATION = 'OTHER_LOCATION'
    PLASTID = 'PLASTID'
    PROPLASTID = 'PROPLASTID'
    PROVIRALPROPHAGE = 'PROVIRALPROPHAGE'
    VIRIONPHAGE = 'VIRIONPHAGE'
    VIROID = 'VIROID'

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


