AudioNormalizationSettings.fromJson constructor

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

Implementation

factory AudioNormalizationSettings.fromJson(Map<String, dynamic> json) {
  return AudioNormalizationSettings(
    algorithm:
        (json['algorithm'] as String?)?.toAudioNormalizationAlgorithm(),
    algorithmControl: (json['algorithmControl'] as String?)
        ?.toAudioNormalizationAlgorithmControl(),
    correctionGateLevel: json['correctionGateLevel'] as int?,
    loudnessLogging: (json['loudnessLogging'] as String?)
        ?.toAudioNormalizationLoudnessLogging(),
    peakCalculation: (json['peakCalculation'] as String?)
        ?.toAudioNormalizationPeakCalculation(),
    targetLkfs: json['targetLkfs'] as double?,
  );
}