toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final algorithm = this.algorithm;
  final algorithmControl = this.algorithmControl;
  final correctionGateLevel = this.correctionGateLevel;
  final loudnessLogging = this.loudnessLogging;
  final peakCalculation = this.peakCalculation;
  final targetLkfs = this.targetLkfs;
  return {
    if (algorithm != null) 'algorithm': algorithm.toValue(),
    if (algorithmControl != null)
      'algorithmControl': algorithmControl.toValue(),
    if (correctionGateLevel != null)
      'correctionGateLevel': correctionGateLevel,
    if (loudnessLogging != null) 'loudnessLogging': loudnessLogging.toValue(),
    if (peakCalculation != null) 'peakCalculation': peakCalculation.toValue(),
    if (targetLkfs != null) 'targetLkfs': targetLkfs,
  };
}