CaptionDescriptionPreset.fromJson constructor
CaptionDescriptionPreset.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CaptionDescriptionPreset.fromJson(Map<String, dynamic> json) {
return CaptionDescriptionPreset(
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?,
);
}