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

import com.qsoft.rs.sincoar.dto.TgenemenulevelPKDTO;
import com.qsoft.rs.sincoar.model.TgenemenulevelPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenemenulevelPK getEntidad(TgenemenulevelPKDTO tgenemenulevelPK) {
        if ( tgenemenulevelPK == null ) {
            return null;
        }

        TgenemenulevelPK tgenemenulevelPK1 = new TgenemenulevelPK();

        if ( tgenemenulevelPK.getMenucode() != null ) {
            tgenemenulevelPK1.setMenucode( tgenemenulevelPK.getMenucode() );
        }
        if ( tgenemenulevelPK.getLevelcode() != null ) {
            tgenemenulevelPK1.setLevelcode( tgenemenulevelPK.getLevelcode() );
        }

        return tgenemenulevelPK1;
    }

    @Override
    public TgenemenulevelPKDTO getDto(TgenemenulevelPK tgenemenulevelPK) {
        if ( tgenemenulevelPK == null ) {
            return null;
        }

        TgenemenulevelPKDTO tgenemenulevelPKDTO = new TgenemenulevelPKDTO();

        tgenemenulevelPKDTO.setMenucode( tgenemenulevelPK.getMenucode() );
        tgenemenulevelPKDTO.setLevelcode( tgenemenulevelPK.getLevelcode() );

        return tgenemenulevelPKDTO;
    }
}
