AudioParameters.fromJson constructor
AudioParameters.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AudioParameters.fromJson(Map<String, dynamic> json) {
return AudioParameters(
audioPackingMode: json['AudioPackingMode'] as String?,
bitRate: json['BitRate'] as String?,
channels: json['Channels'] as String?,
codec: json['Codec'] as String?,
codecOptions: json['CodecOptions'] != null
? AudioCodecOptions.fromJson(
json['CodecOptions'] as Map<String, dynamic>)
: null,
sampleRate: json['SampleRate'] as String?,
);
}