toJson method
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 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 (vocabularyName != null) 'VocabularyName': vocabularyName,
};
}