toJson method

Map<String, dynamic> toJson()

Implementation

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