Settings.fromJson constructor
Settings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Settings.fromJson(Map<String, dynamic> json) {
return Settings(
channelIdentification: json['ChannelIdentification'] as bool?,
maxAlternatives: json['MaxAlternatives'] as int?,
maxSpeakerLabels: json['MaxSpeakerLabels'] as int?,
showAlternatives: json['ShowAlternatives'] as bool?,
showSpeakerLabels: json['ShowSpeakerLabels'] as bool?,
vocabularyFilterMethod: (json['VocabularyFilterMethod'] as String?)
?.toVocabularyFilterMethod(),
vocabularyFilterName: json['VocabularyFilterName'] as String?,
vocabularyName: json['VocabularyName'] as String?,
);
}