Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.12 KB

File metadata and controls

33 lines (24 loc) · 1.12 KB

TextSegment

Properties

Name Type Description Notes
bold bool Whether the text is bold. [optional]
color str The color of the text. [optional]
css_class str A CSS class to apply to the text segment. [optional]
italic bool Whether the text is italic. [optional]
text str The text content of the segment. [optional]

Example

from cyperf.models.text_segment import TextSegment

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

# convert the object into a dict
text_segment_dict = text_segment_instance.to_dict()
# create an instance of TextSegment from a dict
text_segment_from_dict = TextSegment.from_dict(text_segment_dict)

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