tech.jhipster.lite.project.infrastructure.secondary.PersistedPresets Maven / Gradle / Ivy
package tech.jhipster.lite.project.infrastructure.secondary;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import tech.jhipster.lite.project.domain.preset.Preset;
record PersistedPresets(@JsonProperty("presets") Collection presets) {
public Collection toDomain() {
return presets.stream().map(PersistedPreset::toDomain).toList();
}
}