VoiceSelectionParams.fromJson constructor

VoiceSelectionParams.fromJson(
  1. Map json_
)

Implementation

VoiceSelectionParams.fromJson(core.Map json_)
    : this(
        customVoice: json_.containsKey('customVoice')
            ? CustomVoiceParams.fromJson(
                json_['customVoice'] as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ssmlGender: json_.containsKey('ssmlGender')
            ? json_['ssmlGender'] as core.String
            : null,
      );