Eac3Settings.fromJson constructor

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

Implementation

factory Eac3Settings.fromJson(Map<String, dynamic> json) {
  return Eac3Settings(
    attenuationControl:
        (json['attenuationControl'] as String?)?.toEac3AttenuationControl(),
    bitrate: json['bitrate'] as int?,
    bitstreamMode: (json['bitstreamMode'] as String?)?.toEac3BitstreamMode(),
    codingMode: (json['codingMode'] as String?)?.toEac3CodingMode(),
    dcFilter: (json['dcFilter'] as String?)?.toEac3DcFilter(),
    dialnorm: json['dialnorm'] as int?,
    dynamicRangeCompressionLine:
        (json['dynamicRangeCompressionLine'] as String?)
            ?.toEac3DynamicRangeCompressionLine(),
    dynamicRangeCompressionRf: (json['dynamicRangeCompressionRf'] as String?)
        ?.toEac3DynamicRangeCompressionRf(),
    lfeControl: (json['lfeControl'] as String?)?.toEac3LfeControl(),
    lfeFilter: (json['lfeFilter'] as String?)?.toEac3LfeFilter(),
    loRoCenterMixLevel: json['loRoCenterMixLevel'] as double?,
    loRoSurroundMixLevel: json['loRoSurroundMixLevel'] as double?,
    ltRtCenterMixLevel: json['ltRtCenterMixLevel'] as double?,
    ltRtSurroundMixLevel: json['ltRtSurroundMixLevel'] as double?,
    metadataControl:
        (json['metadataControl'] as String?)?.toEac3MetadataControl(),
    passthroughControl:
        (json['passthroughControl'] as String?)?.toEac3PassthroughControl(),
    phaseControl: (json['phaseControl'] as String?)?.toEac3PhaseControl(),
    sampleRate: json['sampleRate'] as int?,
    stereoDownmix: (json['stereoDownmix'] as String?)?.toEac3StereoDownmix(),
    surroundExMode:
        (json['surroundExMode'] as String?)?.toEac3SurroundExMode(),
    surroundMode: (json['surroundMode'] as String?)?.toEac3SurroundMode(),
  );
}