# 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 PresetDesignTypeName(str, Enum):
    """
    The name of the design type. This can be one of the following:  - `doc`: A [Canva doc](https://www.canva.com/docs/); a document for Canva's online text editor. - `whiteboard`: A [whiteboard](https://www.canva.com/online-whiteboard/); a design which gives you infinite space to collaborate. - `presentation`: A [presentation](https://www.canva.com/presentations/); lets you create and collaborate for presenting to an audience.
    """

    """
    allowed enum values
    """
    DOC = 'doc'
    WHITEBOARD = 'whiteboard'
    PRESENTATION = 'presentation'

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


