Intent constructor

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

Implementation

factory Intent({
  $core.String? name,
  $core.String? displayName,
  $core.int? priority,
  $core.bool? isFallback,
  Intent_WebhookState? webhookState,
  $core.Iterable<$core.String>? inputContextNames,
  $core.Iterable<$core.String>? events,
  $core.Iterable<Intent_TrainingPhrase>? trainingPhrases,
  $core.String? action,
  $core.Iterable<$4.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 (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;
}