toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final channelIdentification = this.channelIdentification;
  final maxAlternatives = this.maxAlternatives;
  final maxSpeakerLabels = this.maxSpeakerLabels;
  final showAlternatives = this.showAlternatives;
  final showSpeakerLabels = this.showSpeakerLabels;
  final vocabularyFilterMethod = this.vocabularyFilterMethod;
  final vocabularyFilterName = this.vocabularyFilterName;
  final vocabularyName = this.vocabularyName;
  return {
    if (channelIdentification != null)
      'ChannelIdentification': channelIdentification,
    if (maxAlternatives != null) 'MaxAlternatives': maxAlternatives,
    if (maxSpeakerLabels != null) 'MaxSpeakerLabels': maxSpeakerLabels,
    if (showAlternatives != null) 'ShowAlternatives': showAlternatives,
    if (showSpeakerLabels != null) 'ShowSpeakerLabels': showSpeakerLabels,
    if (vocabularyFilterMethod != null)
      'VocabularyFilterMethod': vocabularyFilterMethod.toValue(),
    if (vocabularyFilterName != null)
      'VocabularyFilterName': vocabularyFilterName,
    if (vocabularyName != null) 'VocabularyName': vocabularyName,
  };
}