Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.32 KB

File metadata and controls

33 lines (24 loc) · 1.32 KB

ContentBlock

Properties

Name Type Description Notes
content List[TextSegment] The content of the block, as a list of rich text segments. [optional]
level int The heading level (1-6), used by heading blocks. [optional]
list_style str The list style: ordered or unordered (used by list blocks). [optional]
severity str The severity level of a note block: info, warning, error, or success. [optional]
type str The type of content block (e.g. paragraph, list, note, heading, divider). [optional]

Example

from cyperf.models.content_block import ContentBlock

# TODO update the JSON string below
json = "{}"
# create an instance of ContentBlock from a JSON string
content_block_instance = ContentBlock.from_json(json)
# print the JSON string representation of the object
print(ContentBlock.to_json())

# convert the object into a dict
content_block_dict = content_block_instance.to_dict()
# create an instance of ContentBlock from a dict
content_block_from_dict = ContentBlock.from_dict(content_block_dict)

[Back to Model list] [Back to API list] [Back to README]