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

import com.qsoft.rs.sincoar.dto.TgenemenudescPKDTO;
import com.qsoft.rs.sincoar.model.TgenemenudescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenemenudescPK getEntidad(TgenemenudescPKDTO tgenemenudescPK) {
        if ( tgenemenudescPK == null ) {
            return null;
        }

        TgenemenudescPK tgenemenudescPK1 = new TgenemenudescPK();

        if ( tgenemenudescPK.getMenucode() != null ) {
            tgenemenudescPK1.setMenucode( tgenemenudescPK.getMenucode() );
        }
        tgenemenudescPK1.setLanguagecode( tgenemenudescPK.getLanguagecode() );

        return tgenemenudescPK1;
    }

    @Override
    public TgenemenudescPKDTO getDto(TgenemenudescPK tgenemenudescPK) {
        if ( tgenemenudescPK == null ) {
            return null;
        }

        TgenemenudescPKDTO tgenemenudescPKDTO = new TgenemenudescPKDTO();

        tgenemenudescPKDTO.setMenucode( tgenemenudescPK.getMenucode() );
        tgenemenudescPKDTO.setLanguagecode( tgenemenudescPK.getLanguagecode() );

        return tgenemenudescPKDTO;
    }
}
