# coding: utf-8

"""
    Canva Connect API

    API for building integrations with Canva via a REST api

    The version of the OpenAPI document: latest
    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 ExportQuality(str, Enum):
    """
    Specifies the export quality of the design. This can be one of the following: - `regular`: Regular quality export. This is the default. - `pro`: Premium quality export.    NOTE: A `pro` export might fail if the design contains [premium elements](https://www.canva.com/help/premium-elements/) and the calling user either hasn't purchased the elements or isn't on a Canva plan (such as Canva Pro) that has premium features.
    """

    """
    allowed enum values
    """
    PRO = 'pro'
    REGULAR = 'regular'

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


