StreamingDetectIntentResponse constructor

StreamingDetectIntentResponse({
  1. StreamingRecognitionResult? recognitionResult,
  2. DetectIntentResponse? detectIntentResponse,
})

Implementation

factory StreamingDetectIntentResponse({
  StreamingRecognitionResult? recognitionResult,
  DetectIntentResponse? detectIntentResponse,
}) {
  final _result = create();
  if (recognitionResult != null) {
    _result.recognitionResult = recognitionResult;
  }
  if (detectIntentResponse != null) {
    _result.detectIntentResponse = detectIntentResponse;
  }
  return _result;
}