Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 878 Bytes

File metadata and controls

30 lines (21 loc) · 878 Bytes

Enum

Properties

Name Type Description Notes
choices List[Choice] The constant values accepted by the enum [optional]
default str The default value of the enum [optional]

Example

from cyperf.models.enum import Enum

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

# convert the object into a dict
enum_dict = enum_instance.to_dict()
# create an instance of Enum from a dict
enum_from_dict = Enum.from_dict(enum_dict)

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