Intent constructor

Intent({
  1. String? name,
  2. String? displayName,
  3. Iterable<Intent_TrainingPhrase>? trainingPhrases,
  4. Iterable<Intent_Parameter>? parameters,
  5. int? priority,
  6. bool? isFallback,
  7. Map<String, String>? labels,
  8. String? description,
})

Implementation

factory Intent({
  $core.String? name,
  $core.String? displayName,
  $core.Iterable<Intent_TrainingPhrase>? trainingPhrases,
  $core.Iterable<Intent_Parameter>? parameters,
  $core.int? priority,
  $core.bool? isFallback,
  $core.Map<$core.String, $core.String>? labels,
  $core.String? description,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (trainingPhrases != null) {
    _result.trainingPhrases.addAll(trainingPhrases);
  }
  if (parameters != null) {
    _result.parameters.addAll(parameters);
  }
  if (priority != null) {
    _result.priority = priority;
  }
  if (isFallback != null) {
    _result.isFallback = isFallback;
  }
  if (labels != null) {
    _result.labels.addAll(labels);
  }
  if (description != null) {
    _result.description = description;
  }
  return _result;
}