Match constructor

Match({
  1. Intent? intent,
  2. Struct? parameters,
  3. String? resolvedInput,
  4. Match_MatchType? matchType,
  5. double? confidence,
  6. String? event,
})

Implementation

factory Match({
  $7.Intent? intent,
  $16.Struct? parameters,
  $core.String? resolvedInput,
  Match_MatchType? matchType,
  $core.double? confidence,
  $core.String? event,
}) {
  final _result = create();
  if (intent != null) {
    _result.intent = intent;
  }
  if (parameters != null) {
    _result.parameters = parameters;
  }
  if (resolvedInput != null) {
    _result.resolvedInput = resolvedInput;
  }
  if (matchType != null) {
    _result.matchType = matchType;
  }
  if (confidence != null) {
    _result.confidence = confidence;
  }
  if (event != null) {
    _result.event = event;
  }
  return _result;
}