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

import com.qsoft.rs.sincoar.dto.TgenebalancetypedetailPKDTO;
import com.qsoft.rs.sincoar.model.TgenebalancetypedetailPK;
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 TgenebalancetypedetailPKMapperImpl implements TgenebalancetypedetailPKMapper {

    @Override
    public TgenebalancetypedetailPK getEntidad(TgenebalancetypedetailPKDTO tgenebalancetypedetailPK) {
        if ( tgenebalancetypedetailPK == null ) {
            return null;
        }

        TgenebalancetypedetailPK tgenebalancetypedetailPK1 = new TgenebalancetypedetailPK();

        tgenebalancetypedetailPK1.setBalancetype( tgenebalancetypedetailPK.getBalancetype() );
        tgenebalancetypedetailPK1.setBalancegroup( tgenebalancetypedetailPK.getBalancegroup() );

        return tgenebalancetypedetailPK1;
    }

    @Override
    public TgenebalancetypedetailPKDTO getDto(TgenebalancetypedetailPK tgenebalancetypedetailPK) {
        if ( tgenebalancetypedetailPK == null ) {
            return null;
        }

        TgenebalancetypedetailPKDTO tgenebalancetypedetailPKDTO = new TgenebalancetypedetailPKDTO();

        tgenebalancetypedetailPKDTO.setBalancetype( tgenebalancetypedetailPK.getBalancetype() );
        tgenebalancetypedetailPKDTO.setBalancegroup( tgenebalancetypedetailPK.getBalancegroup() );

        return tgenebalancetypedetailPKDTO;
    }
}
