CaptionSelector.fromJson constructor
Implementation
factory CaptionSelector.fromJson(Map<String, dynamic> json) {
return CaptionSelector(
customLanguageCode: json['customLanguageCode'] as String?,
languageCode: (json['languageCode'] as String?)?.toLanguageCode(),
sourceSettings: json['sourceSettings'] != null
? CaptionSourceSettings.fromJson(
json['sourceSettings'] as Map<String, dynamic>)
: null,
);
}