# 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 SuggestionFormat(str, Enum):
    """
    The suggested format change.
    """

    """
    allowed enum values
    """
    FONT_FAMILY = 'font_family'
    FONT_SIZE = 'font_size'
    FONT_WEIGHT = 'font_weight'
    FONT_STYLE = 'font_style'
    COLOR = 'color'
    DECORATION = 'decoration'
    STRIKETHROUGH = 'strikethrough'
    LINK = 'link'
    LETTER_SPACING = 'letter_spacing'
    LINE_HEIGHT = 'line_height'
    DIRECTION = 'direction'
    TEXT_ALIGN = 'text_align'
    LIST_MARKER = 'list_marker'
    LIST_LEVEL = 'list_level'
    MARGIN_INLINE_START = 'margin_inline_start'
    TEXT_INDENT = 'text_indent'

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


