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

import com.qsoft.rs.sincoar.dto.TgenelabelPKDTO;
import com.qsoft.rs.sincoar.model.TgenelabelPK;
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 TgenelabelPKMapperImpl implements TgenelabelPKMapper {

    @Override
    public TgenelabelPK getEntidad(TgenelabelPKDTO tgenelabelPK) {
        if ( tgenelabelPK == null ) {
            return null;
        }

        TgenelabelPK tgenelabelPK1 = new TgenelabelPK();

        tgenelabelPK1.setLabel( tgenelabelPK.getLabel() );
        tgenelabelPK1.setLanguagecode( tgenelabelPK.getLanguagecode() );
        tgenelabelPK1.setChannelcode( tgenelabelPK.getChannelcode() );

        return tgenelabelPK1;
    }

    @Override
    public TgenelabelPKDTO getDto(TgenelabelPK tgenelabelPK) {
        if ( tgenelabelPK == null ) {
            return null;
        }

        TgenelabelPKDTO tgenelabelPKDTO = new TgenelabelPKDTO();

        tgenelabelPKDTO.setLabel( tgenelabelPK.getLabel() );
        tgenelabelPKDTO.setLanguagecode( tgenelabelPK.getLanguagecode() );
        tgenelabelPKDTO.setChannelcode( tgenelabelPK.getChannelcode() );

        return tgenelabelPKDTO;
    }
}
