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

import com.qsoft.rs.sincoar.dto.TgenecredittypedescPKDTO;
import com.qsoft.rs.sincoar.model.TgenecredittypedescPK;
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 TgenecredittypedescPKMapperImpl implements TgenecredittypedescPKMapper {

    @Override
    public TgenecredittypedescPK getEntidad(TgenecredittypedescPKDTO tgenecredittypedescPK) {
        if ( tgenecredittypedescPK == null ) {
            return null;
        }

        TgenecredittypedescPK tgenecredittypedescPK1 = new TgenecredittypedescPK();

        tgenecredittypedescPK1.setCredittypecode( tgenecredittypedescPK.getCredittypecode() );
        tgenecredittypedescPK1.setLanguagecode( tgenecredittypedescPK.getLanguagecode() );

        return tgenecredittypedescPK1;
    }

    @Override
    public TgenecredittypedescPKDTO getDto(TgenecredittypedescPK tgenecredittypedescPK) {
        if ( tgenecredittypedescPK == null ) {
            return null;
        }

        TgenecredittypedescPKDTO tgenecredittypedescPKDTO = new TgenecredittypedescPKDTO();

        tgenecredittypedescPKDTO.setCredittypecode( tgenecredittypedescPK.getCredittypecode() );
        tgenecredittypedescPKDTO.setLanguagecode( tgenecredittypedescPK.getLanguagecode() );

        return tgenecredittypedescPKDTO;
    }
}
