A map or message creation expression. Maps are constructed as {'key_name': 'value'}
. Message construction is similar, but prefixed with a type name and composed of field ids: types.MyType{field_id: 'value'}
.
Name | Type | Description | Notes |
---|---|---|---|
message_name | str | The type name of the message to be created, empty when creating map literals. | [optional] |
entries | List[Entry] | The entries in the creation expression. | [optional] |
from permify.models.create_struct import CreateStruct
# TODO update the JSON string below
json = "{}"
# create an instance of CreateStruct from a JSON string
create_struct_instance = CreateStruct.from_json(json)
# print the JSON string representation of the object
print(CreateStruct.to_json())
# convert the object into a dict
create_struct_dict = create_struct_instance.to_dict()
# create an instance of CreateStruct from a dict
create_struct_from_dict = CreateStruct.from_dict(create_struct_dict)