ResponseMessage constructor

ResponseMessage({
  1. ResponseMessage_Text? text,
  2. Struct? payload,
  3. ResponseMessage_OutputAudioText? outputAudioText,
  4. ResponseMessage_ConversationSuccess? conversationSuccess,
  5. ResponseMessage_LiveAgentHandoff? liveAgentHandoff,
  6. ResponseMessage_EndInteraction? endInteraction,
  7. ResponseMessage_PlayAudio? playAudio,
  8. 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;
}