in aws-customerprofiles-integration/src/main/java/software/amazon/customerprofiles/integration/Translator.java [29:38]
static List<Tag> mapTagsToList(Map<String, String> tags) {
if (tags == null || tags.isEmpty()) {
return null;
}
return tags.entrySet().stream()
.map(t -> Tag.builder()
.key(t.getKey())
.value(t.getValue()).build())
.collect(Collectors.toList());
}