AudioDescription.fromJson constructor
AudioDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AudioDescription.fromJson(Map<String, dynamic> json) {
return AudioDescription(
audioChannelTaggingSettings: json['audioChannelTaggingSettings'] != null
? AudioChannelTaggingSettings.fromJson(
json['audioChannelTaggingSettings'] as Map<String, dynamic>)
: null,
audioNormalizationSettings: json['audioNormalizationSettings'] != null
? AudioNormalizationSettings.fromJson(
json['audioNormalizationSettings'] as Map<String, dynamic>)
: null,
audioSourceName: json['audioSourceName'] as String?,
audioType: json['audioType'] as int?,
audioTypeControl:
(json['audioTypeControl'] as String?)?.toAudioTypeControl(),
codecSettings: json['codecSettings'] != null
? AudioCodecSettings.fromJson(
json['codecSettings'] as Map<String, dynamic>)
: null,
customLanguageCode: json['customLanguageCode'] as String?,
languageCode: (json['languageCode'] as String?)?.toLanguageCode(),
languageCodeControl: (json['languageCodeControl'] as String?)
?.toAudioLanguageCodeControl(),
remixSettings: json['remixSettings'] != null
? RemixSettings.fromJson(
json['remixSettings'] as Map<String, dynamic>)
: null,
streamName: json['streamName'] as String?,
);
}