Mp3Settings.fromJson constructor

Mp3Settings.fromJson(
  1. Map<String, dynamic> json
)

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?,
  );
}