HlsCaptionLanguageMapping.fromJson constructor

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

Implementation

factory HlsCaptionLanguageMapping.fromJson(Map<String, dynamic> json) {
  return HlsCaptionLanguageMapping(
    captionChannel: json['captionChannel'] as int?,
    customLanguageCode: json['customLanguageCode'] as String?,
    languageCode: (json['languageCode'] as String?)?.toLanguageCode(),
    languageDescription: json['languageDescription'] as String?,
  );
}