in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/Translator.java [201:217]
public static List<ComponentChild> translateChildComponentsFromCFNToSDK(List<software.amazon.amplifyuibuilder.component.ComponentChild> children) {
if (children == null) {
return null;
}
List<ComponentChild> translated = new ArrayList<>();
for (software.amazon.amplifyuibuilder.component.ComponentChild c : children) {
translated.add(
ComponentChild.builder()
.componentType(c.getComponentType())
.name(c.getName())
.properties(translatePropertiesFromCFNToSDK(c.getProperties()))
.children(translateChildComponentsFromCFNToSDK(c.getChildren()))
.build()
);
}
return translated;
}