Intent constructor
Intent({})
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;
}