AudioCodecSettings.fromJson constructor
AudioCodecSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AudioCodecSettings.fromJson(Map<String, dynamic> json) {
return AudioCodecSettings(
aacSettings: json['aacSettings'] != null
? AacSettings.fromJson(json['aacSettings'] as Map<String, dynamic>)
: null,
ac3Settings: json['ac3Settings'] != null
? Ac3Settings.fromJson(json['ac3Settings'] as Map<String, dynamic>)
: null,
aiffSettings: json['aiffSettings'] != null
? AiffSettings.fromJson(json['aiffSettings'] as Map<String, dynamic>)
: null,
codec: (json['codec'] as String?)?.toAudioCodec(),
eac3AtmosSettings: json['eac3AtmosSettings'] != null
? Eac3AtmosSettings.fromJson(
json['eac3AtmosSettings'] as Map<String, dynamic>)
: null,
eac3Settings: json['eac3Settings'] != null
? Eac3Settings.fromJson(json['eac3Settings'] as Map<String, dynamic>)
: null,
mp2Settings: json['mp2Settings'] != null
? Mp2Settings.fromJson(json['mp2Settings'] as Map<String, dynamic>)
: null,
mp3Settings: json['mp3Settings'] != null
? Mp3Settings.fromJson(json['mp3Settings'] as Map<String, dynamic>)
: null,
opusSettings: json['opusSettings'] != null
? OpusSettings.fromJson(json['opusSettings'] as Map<String, dynamic>)
: null,
vorbisSettings: json['vorbisSettings'] != null
? VorbisSettings.fromJson(
json['vorbisSettings'] as Map<String, dynamic>)
: null,
wavSettings: json['wavSettings'] != null
? WavSettings.fromJson(json['wavSettings'] as Map<String, dynamic>)
: null,
);
}