toJson method
Implementation
Map<String, dynamic> toJson() {
final captionSelectorName = this.captionSelectorName;
final customLanguageCode = this.customLanguageCode;
final destinationSettings = this.destinationSettings;
final languageCode = this.languageCode;
final languageDescription = this.languageDescription;
return {
if (captionSelectorName != null)
'captionSelectorName': captionSelectorName,
if (customLanguageCode != null) 'customLanguageCode': customLanguageCode,
if (destinationSettings != null)
'destinationSettings': destinationSettings,
if (languageCode != null) 'languageCode': languageCode.toValue(),
if (languageDescription != null)
'languageDescription': languageDescription,
};
}