# 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 ExportPageSize(str, Enum):
    """
    The paper size of the export PDF file. The `size` attribute is only supported for Documents (Canva Docs).
    """

    """
    allowed enum values
    """
    A4 = 'a4'
    A3 = 'a3'
    LETTER = 'letter'
    LEGAL = 'legal'

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


