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