MatchIntentResponse constructor

MatchIntentResponse({
  1. String? text,
  2. String? triggerIntent,
  3. String? transcript,
  4. Iterable<Match>? matches,
  5. Page? currentPage,
  6. String? triggerEvent,
})

Implementation

factory MatchIntentResponse({
  $core.String? text,
  $core.String? triggerIntent,
  $core.String? transcript,
  $core.Iterable<Match>? matches,
  $0.Page? currentPage,
  $core.String? triggerEvent,
}) {
  final _result = create();
  if (text != null) {
    _result.text = text;
  }
  if (triggerIntent != null) {
    _result.triggerIntent = triggerIntent;
  }
  if (transcript != null) {
    _result.transcript = transcript;
  }
  if (matches != null) {
    _result.matches.addAll(matches);
  }
  if (currentPage != null) {
    _result.currentPage = currentPage;
  }
  if (triggerEvent != null) {
    _result.triggerEvent = triggerEvent;
  }
  return _result;
}