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