CaptionSelector.fromJson constructor

CaptionSelector.fromJson(
  1. Map<String, dynamic> json
)

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,
  );
}