Ac3Settings.fromJson constructor

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

Implementation

factory Ac3Settings.fromJson(Map<String, dynamic> json) {
  return Ac3Settings(
    bitrate: json['bitrate'] as int?,
    bitstreamMode: (json['bitstreamMode'] as String?)?.toAc3BitstreamMode(),
    codingMode: (json['codingMode'] as String?)?.toAc3CodingMode(),
    dialnorm: json['dialnorm'] as int?,
    dynamicRangeCompressionProfile:
        (json['dynamicRangeCompressionProfile'] as String?)
            ?.toAc3DynamicRangeCompressionProfile(),
    lfeFilter: (json['lfeFilter'] as String?)?.toAc3LfeFilter(),
    metadataControl:
        (json['metadataControl'] as String?)?.toAc3MetadataControl(),
    sampleRate: json['sampleRate'] as int?,
  );
}