WavSettings.fromJson constructor

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

Implementation

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