Intent constructor

Intent({
  1. String? name,
  2. String? displayName,
  3. int? priority,
  4. bool? isFallback,
  5. @Deprecated('This field is deprecated.') bool? mlEnabled,
  6. Intent_WebhookState? webhookState,
  7. Iterable<String>? inputContextNames,
  8. Iterable<String>? events,
  9. Iterable<Intent_TrainingPhrase>? trainingPhrases,
  10. String? action,
  11. Iterable<Context>? outputContexts,
  12. bool? resetContexts,
  13. Iterable<Intent_Parameter>? parameters,
  14. Iterable<Intent_Message>? messages,
  15. Iterable<Intent_Message_Platform>? defaultResponsePlatforms,
  16. String? rootFollowupIntentName,
  17. String? parentFollowupIntentName,
  18. Iterable<Intent_FollowupIntentInfo>? followupIntentInfo,
  19. bool? mlDisabled,
  20. bool? liveAgentHandoff,
  21. bool? endInteraction,
})

Implementation

factory Intent({
  $core.String? name,
  $core.String? displayName,
  $core.int? priority,
  $core.bool? isFallback,
  @$core.Deprecated('This field is deprecated.') $core.bool? mlEnabled,
  Intent_WebhookState? webhookState,
  $core.Iterable<$core.String>? inputContextNames,
  $core.Iterable<$core.String>? events,
  $core.Iterable<Intent_TrainingPhrase>? trainingPhrases,
  $core.String? action,
  $core.Iterable<$5.Context>? outputContexts,
  $core.bool? resetContexts,
  $core.Iterable<Intent_Parameter>? parameters,
  $core.Iterable<Intent_Message>? messages,
  $core.Iterable<Intent_Message_Platform>? defaultResponsePlatforms,
  $core.String? rootFollowupIntentName,
  $core.String? parentFollowupIntentName,
  $core.Iterable<Intent_FollowupIntentInfo>? followupIntentInfo,
  $core.bool? mlDisabled,
  $core.bool? liveAgentHandoff,
  $core.bool? endInteraction,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (priority != null) {
    _result.priority = priority;
  }
  if (isFallback != null) {
    _result.isFallback = isFallback;
  }
  if (mlEnabled != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.mlEnabled = mlEnabled;
  }
  if (webhookState != null) {
    _result.webhookState = webhookState;
  }
  if (inputContextNames != null) {
    _result.inputContextNames.addAll(inputContextNames);
  }
  if (events != null) {
    _result.events.addAll(events);
  }
  if (trainingPhrases != null) {
    _result.trainingPhrases.addAll(trainingPhrases);
  }
  if (action != null) {
    _result.action = action;
  }
  if (outputContexts != null) {
    _result.outputContexts.addAll(outputContexts);
  }
  if (resetContexts != null) {
    _result.resetContexts = resetContexts;
  }
  if (parameters != null) {
    _result.parameters.addAll(parameters);
  }
  if (messages != null) {
    _result.messages.addAll(messages);
  }
  if (defaultResponsePlatforms != null) {
    _result.defaultResponsePlatforms.addAll(defaultResponsePlatforms);
  }
  if (rootFollowupIntentName != null) {
    _result.rootFollowupIntentName = rootFollowupIntentName;
  }
  if (parentFollowupIntentName != null) {
    _result.parentFollowupIntentName = parentFollowupIntentName;
  }
  if (followupIntentInfo != null) {
    _result.followupIntentInfo.addAll(followupIntentInfo);
  }
  if (mlDisabled != null) {
    _result.mlDisabled = mlDisabled;
  }
  if (liveAgentHandoff != null) {
    _result.liveAgentHandoff = liveAgentHandoff;
  }
  if (endInteraction != null) {
    _result.endInteraction = endInteraction;
  }
  return _result;
}