Response

Response

A Response object as defined in the JSON schema. It can be built only from a top level object (Menu, Form).

Constructor

new Response(content)

Instantiates a Response object

Parameters:
Name Type Description
content Form | Menu

The content of the response. Either Form or a Menu.

Source:

Members

content :Form|Menu

The content of the response, either a Form or a Menu.

Source:

contentType :string

The type of the content of the response, either "form" or "menu".

Source:

Methods

(static) fromTag(tag) → {Response}

Creates a Response from a FormTag or SectionTag

Parameters:
Name Type Description
tag FormTag | SectionTag
Source: