invoke

@JvmName(name = "create")
operator fun invoke(question: FieldDefinition.Text, response: String): PreChatSurveyResponse.Text

Creates instance of Text survey response.

Parameters

question

FieldDefinition.Text survey question which is being answered.

response

The user provided text response to the survey. An empty String is considered as an invalid answer, and the whole response will be later discarded.