RecognizeResponse constructor

RecognizeResponse({
  1. Iterable<SpeechRecognitionResult>? results,
  2. Duration? totalBilledTime,
  3. SpeechAdaptationInfo? speechAdaptationInfo,
  4. Int64? requestId,
})

Implementation

factory RecognizeResponse({
  $core.Iterable<SpeechRecognitionResult>? results,
  $3.Duration? totalBilledTime,
  SpeechAdaptationInfo? speechAdaptationInfo,
  $fixnum.Int64? requestId,
}) {
  final $result = create();
  if (results != null) {
    $result.results.addAll(results);
  }
  if (totalBilledTime != null) {
    $result.totalBilledTime = totalBilledTime;
  }
  if (speechAdaptationInfo != null) {
    $result.speechAdaptationInfo = speechAdaptationInfo;
  }
  if (requestId != null) {
    $result.requestId = requestId;
  }
  return $result;
}