AudioDescription.fromJson constructor
AudioDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AudioDescription.fromJson(Map<String, dynamic> json) {
return AudioDescription(
audioSelectorName: json['audioSelectorName'] as String,
name: json['name'] as String,
audioNormalizationSettings: json['audioNormalizationSettings'] != null
? AudioNormalizationSettings.fromJson(
json['audioNormalizationSettings'] as Map<String, dynamic>)
: null,
audioType: (json['audioType'] as String?)?.toAudioType(),
audioTypeControl: (json['audioTypeControl'] as String?)
?.toAudioDescriptionAudioTypeControl(),
codecSettings: json['codecSettings'] != null
? AudioCodecSettings.fromJson(
json['codecSettings'] as Map<String, dynamic>)
: null,
languageCode: json['languageCode'] as String?,
languageCodeControl: (json['languageCodeControl'] as String?)
?.toAudioDescriptionLanguageCodeControl(),
remixSettings: json['remixSettings'] != null
? RemixSettings.fromJson(
json['remixSettings'] as Map<String, dynamic>)
: null,
streamName: json['streamName'] as String?,
);
}