tock / ai.tock.bot.engine.message / GenericElement

# GenericElement

`data class GenericElement` (source)

A sub element of GenericMessage.

### Constructors

#### <init> | Transforms a GenericMessage into a GenericElement. `GenericElement(message: GenericMessage)` A sub element of GenericMessage. `GenericElement(attachments: List<Attachment> = emptyList(), choices: List<Choice> = emptyList(), texts: Map<String, String> = emptyMap(), locations: List<Location> = emptyList(), metadata: Map<String, String> = emptyMap())`

### Properties

#### attachments | `val attachments: List<Attachment>`
#### choices | `val choices: List<Choice>`
#### locations | `val locations: List<Location>`
#### metadata | `val metadata: Map<String, String>`
#### texts | `val texts: Map<String, String>`