OpusSettings.fromJson constructor

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

Implementation

factory OpusSettings.fromJson(Map<String, dynamic> json) {
  return OpusSettings(
    bitrate: json['bitrate'] as int?,
    channels: json['channels'] as int?,
    sampleRate: json['sampleRate'] as int?,
  );
}