vapi metadata metamodel: element map

The element_map structure contains the metadata elements.

One of the sources for metadata is the annotations present in the interface definition language. When an annotation is represented in the element_map, element_map describes the data specified in the arguments for the annotation.

For example, in @UnionCase(tag="tag", value="SELECT"), ElementMap describes the keyword arguments tag and value.

Representation:

{
    "elements"[
        {
            "key""string",
            "value"{
                "list_value"[
                    "string",
                    "string"
                ],
                "long_value"1,
                "string_value""string",
                "structure_id""obj-103",
                "structure_ids"[
                    "obj-103",
                    "obj-103"
                ],
                "type""LONG"
            }
        }
    ]
}

Attributes:

Name Type Description
Required
elements list Metamodel information of the metadata elements. The key parameter of the key/value pairs is the identifier for the element and the value corresponds to the element value.

List of {"key": string, "value": element_value}