tock / ai.tock.bot.engine.message / GenericElement / <init>

# <init>

`GenericElement(message: GenericMessage)`

Transforms a GenericMessage into a GenericElement.

`GenericElement(attachments: List<Attachment> = emptyList(), choices: List<Choice> = emptyList(), texts: Map<String, String> = emptyMap(), locations: List<Location> = emptyList(), metadata: Map<String, String> = emptyMap())`

A sub element of GenericMessage.