AudioPcmu.fromJson constructor
Creates from JSON.
Implementation
factory AudioPcmu.fromJson(Map<String, dynamic> json) {
if (json['type'] != 'audio/pcmu') {
throw FormatException(
'AudioPcmu.fromJson expected type "audio/pcmu", got ${json['type']}',
);
}
return const AudioPcmu();
}