Skip to content

Latest commit

History

History
31 lines (22 loc) · 1.3 KB

File metadata and controls

31 lines (22 loc) · 1.3 KB

CreateList

A list creation expression. Lists may either be homogenous, e.g. [1, 2, 3], or heterogeneous, e.g. dyn([1, 'hello', 2.0])

Properties

NameTypeDescriptionNotes
elementsList[Expr]The elements part of the list.[optional]
optional_indicesList[int]The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.[optional]

Example

frompermify_async.models.create_listimportCreateList# TODO update the JSON string belowjson="{}"# create an instance of CreateList from a JSON stringcreate_list_instance=CreateList.from_json(json)
# print the JSON string representation of the objectprint(CreateList.to_json())
# convert the object into a dictcreate_list_dict=create_list_instance.to_dict()
# create an instance of CreateList from a dictcreate_list_from_dict=CreateList.from_dict(create_list_dict)

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