MatchIntentResponse constructor
MatchIntentResponse({})
Implementation
factory MatchIntentResponse({
$core.String? text,
$core.String? triggerIntent,
$core.String? transcript,
$core.Iterable<Match>? matches,
$0.Page? currentPage,
$core.String? triggerEvent,
}) {
final _result = create();
if (text != null) {
_result.text = text;
}
if (triggerIntent != null) {
_result.triggerIntent = triggerIntent;
}
if (transcript != null) {
_result.transcript = transcript;
}
if (matches != null) {
_result.matches.addAll(matches);
}
if (currentPage != null) {
_result.currentPage = currentPage;
}
if (triggerEvent != null) {
_result.triggerEvent = triggerEvent;
}
return _result;
}