Voice.fromJson constructor
Voice.fromJson(
- Map json_
Implementation
Voice.fromJson(core.Map json_)
: this(
languageCodes: json_.containsKey('languageCodes')
? (json_['languageCodes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
naturalSampleRateHertz: json_.containsKey('naturalSampleRateHertz')
? json_['naturalSampleRateHertz'] as core.int
: null,
ssmlGender: json_.containsKey('ssmlGender')
? json_['ssmlGender'] as core.String
: null,
);