class AddEcoNewsDtoRequestMapper extends AbstractConverter<AddEcoNewsDtoRequest, EcoNews> {

    @Override
    protected EcoNews convert(AddEcoNewsDtoRequest addEcoNewsDtoRequest) {
        return EcoNews.builder()
            .source(addEcoNewsDtoRequest.getSource())
            .title(addEcoNewsDtoRequest.getTitle())
            .text(addEcoNewsDtoRequest.getText())
            .creationDate(ZonedDateTime.now())
            .build();
    }

}