CaptionDescription.fromJson constructor

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

Implementation

factory CaptionDescription.fromJson(Map<String, dynamic> json) {
  return CaptionDescription(
    captionSelectorName: json['captionSelectorName'] as String?,
    customLanguageCode: json['customLanguageCode'] as String?,
    destinationSettings: json['destinationSettings'] != null
        ? CaptionDestinationSettings.fromJson(
            json['destinationSettings'] as Map<String, dynamic>)
        : null,
    languageCode: (json['languageCode'] as String?)?.toLanguageCode(),
    languageDescription: json['languageDescription'] as String?,
  );
}