SpeechAdaptation.fromJson constructor

SpeechAdaptation.fromJson(
  1. Map json_
)

Implementation

SpeechAdaptation.fromJson(core.Map json_)
    : this(
        customClasses: json_.containsKey('customClasses')
            ? (json_['customClasses'] as core.List)
                .map((value) => CustomClass.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        phraseSets: json_.containsKey('phraseSets')
            ? (json_['phraseSets'] as core.List)
                .map((value) => AdaptationPhraseSet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );