Intent_TrainingPhrase constructor

Intent_TrainingPhrase({
  1. String? name,
  2. Intent_TrainingPhrase_Type? type,
  3. Iterable<Intent_TrainingPhrase_Part>? parts,
  4. int? timesAddedCount,
})

Implementation

factory Intent_TrainingPhrase({
  $core.String? name,
  Intent_TrainingPhrase_Type? type,
  $core.Iterable<Intent_TrainingPhrase_Part>? parts,
  $core.int? timesAddedCount,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (type != null) {
    _result.type = type;
  }
  if (parts != null) {
    _result.parts.addAll(parts);
  }
  if (timesAddedCount != null) {
    _result.timesAddedCount = timesAddedCount;
  }
  return _result;
}