AacSettings.fromJson constructor

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

Implementation

factory AacSettings.fromJson(Map<String, dynamic> json) {
  return AacSettings(
    audioDescriptionBroadcasterMix:
        (json['audioDescriptionBroadcasterMix'] as String?)
            ?.toAacAudioDescriptionBroadcasterMix(),
    bitrate: json['bitrate'] as int?,
    codecProfile: (json['codecProfile'] as String?)?.toAacCodecProfile(),
    codingMode: (json['codingMode'] as String?)?.toAacCodingMode(),
    rateControlMode:
        (json['rateControlMode'] as String?)?.toAacRateControlMode(),
    rawFormat: (json['rawFormat'] as String?)?.toAacRawFormat(),
    sampleRate: json['sampleRate'] as int?,
    specification: (json['specification'] as String?)?.toAacSpecification(),
    vbrQuality: (json['vbrQuality'] as String?)?.toAacVbrQuality(),
  );
}