AacSettings.fromJson constructor

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

Implementation

factory AacSettings.fromJson(Map<String, dynamic> json) {
  return AacSettings(
    bitrate: json['bitrate'] as double?,
    codingMode: (json['codingMode'] as String?)?.toAacCodingMode(),
    inputType: (json['inputType'] as String?)?.toAacInputType(),
    profile: (json['profile'] as String?)?.toAacProfile(),
    rateControlMode:
        (json['rateControlMode'] as String?)?.toAacRateControlMode(),
    rawFormat: (json['rawFormat'] as String?)?.toAacRawFormat(),
    sampleRate: json['sampleRate'] as double?,
    spec: (json['spec'] as String?)?.toAacSpec(),
    vbrQuality: (json['vbrQuality'] as String?)?.toAacVbrQuality(),
  );
}