AudioConfig.fromJson constructor
AudioConfig.fromJson(
- Map json_
Implementation
AudioConfig.fromJson(core.Map json_)
: this(
audioEncoding: json_.containsKey('audioEncoding')
? json_['audioEncoding'] as core.String
: null,
effectsProfileId: json_.containsKey('effectsProfileId')
? (json_['effectsProfileId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
pitch: json_.containsKey('pitch')
? (json_['pitch'] as core.num).toDouble()
: null,
sampleRateHertz: json_.containsKey('sampleRateHertz')
? json_['sampleRateHertz'] as core.int
: null,
speakingRate: json_.containsKey('speakingRate')
? (json_['speakingRate'] as core.num).toDouble()
: null,
volumeGainDb: json_.containsKey('volumeGainDb')
? (json_['volumeGainDb'] as core.num).toDouble()
: null,
);