SpeechAdaptation constructor

SpeechAdaptation({
  1. Iterable<PhraseSet>? phraseSets,
  2. Iterable<String>? phraseSetReferences,
  3. Iterable<CustomClass>? customClasses,
  4. SpeechAdaptation_ABNFGrammar? abnfGrammar,
})

Implementation

factory SpeechAdaptation({
  $core.Iterable<PhraseSet>? phraseSets,
  $core.Iterable<$core.String>? phraseSetReferences,
  $core.Iterable<CustomClass>? customClasses,
  SpeechAdaptation_ABNFGrammar? abnfGrammar,
}) {
  final $result = create();
  if (phraseSets != null) {
    $result.phraseSets.addAll(phraseSets);
  }
  if (phraseSetReferences != null) {
    $result.phraseSetReferences.addAll(phraseSetReferences);
  }
  if (customClasses != null) {
    $result.customClasses.addAll(customClasses);
  }
  if (abnfGrammar != null) {
    $result.abnfGrammar = abnfGrammar;
  }
  return $result;
}