package com.qsoft.rs.sincoar.dominio.mapper;

import com.qsoft.rs.sincoar.dto.TgenemenuDTO;
import com.qsoft.rs.sincoar.model.Tgenemenu;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-09-02T16:14:49-0500",
    comments = "version: 1.5.2.Final, compiler: javac, environment: Java 17.0.4 (Private Build)"
)
public class TgenemenuMapperImpl implements TgenemenuMapper {

    @Override
    public Tgenemenu getEntidad(TgenemenuDTO tgenemenu) {
        if ( tgenemenu == null ) {
            return null;
        }

        Tgenemenu tgenemenu1 = new Tgenemenu();

        tgenemenu1.setMenucode( tgenemenu.getMenucode() );
        tgenemenu1.setDescription( tgenemenu.getDescription() );

        return tgenemenu1;
    }

    @Override
    public TgenemenuDTO getDto(Tgenemenu tgenemenu) {
        if ( tgenemenu == null ) {
            return null;
        }

        TgenemenuDTO tgenemenuDTO = new TgenemenuDTO();

        tgenemenuDTO.setMenucode( tgenemenu.getMenucode() );
        tgenemenuDTO.setDescription( tgenemenu.getDescription() );

        return tgenemenuDTO;
    }
}
