AutomatedAgentReply constructor

AutomatedAgentReply({
  1. DetectIntentResponse? detectIntentResponse,
  2. Iterable<ResponseMessage>? responseMessages,
  3. String? intent,
  4. String? event,
  5. Struct? cxSessionParameters,
})

Implementation

factory AutomatedAgentReply({
  $9.DetectIntentResponse? detectIntentResponse,
  $core.Iterable<ResponseMessage>? responseMessages,
  $core.String? intent,
  $core.String? event,
  $19.Struct? cxSessionParameters,
}) {
  final _result = create();
  if (detectIntentResponse != null) {
    _result.detectIntentResponse = detectIntentResponse;
  }
  if (responseMessages != null) {
    _result.responseMessages.addAll(responseMessages);
  }
  if (intent != null) {
    _result.intent = intent;
  }
  if (event != null) {
    _result.event = event;
  }
  if (cxSessionParameters != null) {
    _result.cxSessionParameters = cxSessionParameters;
  }
  return _result;
}