Source:
public static com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill map(EntityRecognitionSkill obj) { if (obj == null) { return null; } com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill entityRecognitionSkill = new com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill(); if (obj.getOutputs() != null) { List<com.azure.search.documents.indexes.implementation.models.OutputFieldMappingEntry> outputs = obj.getOutputs().stream().map(OutputFieldMappingEntryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setOutputs(outputs); } if (obj.getInputs() != null) { List<com.azure.search.documents.indexes.implementation.models.InputFieldMappingEntry> inputs = obj.getInputs().stream().map(InputFieldMappingEntryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setInputs(inputs); } String name = obj.getName(); entityRecognitionSkill.setName(name); String context = obj.getContext(); entityRecognitionSkill.setContext(context); String description = obj.getDescription(); entityRecognitionSkill.setDescription(description); Boolean includeTypelessEntities = obj.isTypelessEntitiesIncluded(); entityRecognitionSkill.setIncludeTypelessEntities(includeTypelessEntities); if (obj.getDefaultLanguageCode() != null) { com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkillLanguage defaultLanguageCode = EntityRecognitionSkillLanguageConverter.map(obj.getDefaultLanguageCode()); entityRecognitionSkill.setDefaultLanguageCode(defaultLanguageCode); } if (obj.getCategories() != null) { List<com.azure.search.documents.indexes.implementation.models.EntityCategory> categories = obj.getCategories().stream().map(EntityCategoryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setCategories(categories); } Double minimumPrecision = obj.getMinimumPrecision(); entityRecognitionSkill.setMinimumPrecision(minimumPrecision); return entityRecognitionSkill; }

Target:
public static com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill map(EntityRecognitionSkill obj) { if (obj == null) { return null; } com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill entityRecognitionSkill = new com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkill(); if (obj.getOutputs() != null) { List<com.azure.search.documents.indexes.implementation.models.OutputFieldMappingEntry> outputs = obj.getOutputs().stream().map(OutputFieldMappingEntryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setOutputs(outputs); } if (obj.getInputs() != null) { List<com.azure.search.documents.indexes.implementation.models.InputFieldMappingEntry> inputs = obj.getInputs().stream().map(InputFieldMappingEntryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setInputs(inputs); } String name = obj.getName(); entityRecognitionSkill.setName(name); String context = obj.getContext(); entityRecognitionSkill.setContext(context); String description = obj.getDescription(); entityRecognitionSkill.setDescription(description); Boolean includeTypelessEntities = obj.areTypelessEntitiesIncluded(); entityRecognitionSkill.setIncludeTypelessEntities(includeTypelessEntities); if (obj.getDefaultLanguageCode() != null) { com.azure.search.documents.indexes.implementation.models.EntityRecognitionSkillLanguage defaultLanguageCode = EntityRecognitionSkillLanguageConverter.map(obj.getDefaultLanguageCode()); entityRecognitionSkill.setDefaultLanguageCode(defaultLanguageCode); } if (obj.getCategories() != null) { List<com.azure.search.documents.indexes.implementation.models.EntityCategory> categories = obj.getCategories().stream().map(EntityCategoryConverter::map).collect(Collectors.toList()); entityRecognitionSkill.setCategories(categories); } Double minimumPrecision = obj.getMinimumPrecision(); entityRecognitionSkill.setMinimumPrecision(minimumPrecision); return entityRecognitionSkill; }