ResponseMessage constructor
ResponseMessage({
- ResponseMessage_Text? text,
- Struct? payload,
- ResponseMessage_OutputAudioText? outputAudioText,
- ResponseMessage_ConversationSuccess? conversationSuccess,
- ResponseMessage_LiveAgentHandoff? liveAgentHandoff,
- ResponseMessage_EndInteraction? endInteraction,
- ResponseMessage_PlayAudio? playAudio,
- ResponseMessage_MixedAudio? mixedAudio,
Implementation
factory ResponseMessage({
ResponseMessage_Text? text,
$16.Struct? payload,
ResponseMessage_OutputAudioText? outputAudioText,
ResponseMessage_ConversationSuccess? conversationSuccess,
ResponseMessage_LiveAgentHandoff? liveAgentHandoff,
ResponseMessage_EndInteraction? endInteraction,
ResponseMessage_PlayAudio? playAudio,
ResponseMessage_MixedAudio? mixedAudio,
}) {
final _result = create();
if (text != null) {
_result.text = text;
}
if (payload != null) {
_result.payload = payload;
}
if (outputAudioText != null) {
_result.outputAudioText = outputAudioText;
}
if (conversationSuccess != null) {
_result.conversationSuccess = conversationSuccess;
}
if (liveAgentHandoff != null) {
_result.liveAgentHandoff = liveAgentHandoff;
}
if (endInteraction != null) {
_result.endInteraction = endInteraction;
}
if (playAudio != null) {
_result.playAudio = playAudio;
}
if (mixedAudio != null) {
_result.mixedAudio = mixedAudio;
}
return _result;
}