Mp3Settings.fromJson constructor
Implementation
factory Mp3Settings.fromJson(Map<String, dynamic> json) {
return Mp3Settings(
bitrate: json['bitrate'] as int?,
channels: json['channels'] as int?,
rateControlMode:
(json['rateControlMode'] as String?)?.toMp3RateControlMode(),
sampleRate: json['sampleRate'] as int?,
vbrQuality: json['vbrQuality'] as int?,
);
}