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

import com.qsoft.rs.sincoar.dto.TgenemenuleveldescPKDTO;
import com.qsoft.rs.sincoar.model.TgenemenuleveldescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenemenuleveldescPK getEntidad(TgenemenuleveldescPKDTO tgenemenuleveldescPK) {
        if ( tgenemenuleveldescPK == null ) {
            return null;
        }

        TgenemenuleveldescPK tgenemenuleveldescPK1 = new TgenemenuleveldescPK();

        if ( tgenemenuleveldescPK.getMenucode() != null ) {
            tgenemenuleveldescPK1.setMenucode( tgenemenuleveldescPK.getMenucode() );
        }
        if ( tgenemenuleveldescPK.getLevelcode() != null ) {
            tgenemenuleveldescPK1.setLevelcode( tgenemenuleveldescPK.getLevelcode() );
        }
        tgenemenuleveldescPK1.setLanguagecode( tgenemenuleveldescPK.getLanguagecode() );

        return tgenemenuleveldescPK1;
    }

    @Override
    public TgenemenuleveldescPKDTO getDto(TgenemenuleveldescPK tgenemenuleveldescPK) {
        if ( tgenemenuleveldescPK == null ) {
            return null;
        }

        TgenemenuleveldescPKDTO tgenemenuleveldescPKDTO = new TgenemenuleveldescPKDTO();

        tgenemenuleveldescPKDTO.setMenucode( tgenemenuleveldescPK.getMenucode() );
        tgenemenuleveldescPKDTO.setLevelcode( tgenemenuleveldescPK.getLevelcode() );
        tgenemenuleveldescPKDTO.setLanguagecode( tgenemenuleveldescPK.getLanguagecode() );

        return tgenemenuleveldescPKDTO;
    }
}
