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

import com.qsoft.rs.sincoar.dto.TgenebalancetypedescPKDTO;
import com.qsoft.rs.sincoar.model.TgenebalancetypedescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenebalancetypedescPK getEntidad(TgenebalancetypedescPKDTO tgenebalancetypedescPK) {
        if ( tgenebalancetypedescPK == null ) {
            return null;
        }

        TgenebalancetypedescPK tgenebalancetypedescPK1 = new TgenebalancetypedescPK();

        tgenebalancetypedescPK1.setBalancetype( tgenebalancetypedescPK.getBalancetype() );
        tgenebalancetypedescPK1.setBalancegroup( tgenebalancetypedescPK.getBalancegroup() );
        tgenebalancetypedescPK1.setLanguagecode( tgenebalancetypedescPK.getLanguagecode() );

        return tgenebalancetypedescPK1;
    }

    @Override
    public TgenebalancetypedescPKDTO getDto(TgenebalancetypedescPK tgenebalancetypedescPK) {
        if ( tgenebalancetypedescPK == null ) {
            return null;
        }

        TgenebalancetypedescPKDTO tgenebalancetypedescPKDTO = new TgenebalancetypedescPKDTO();

        tgenebalancetypedescPKDTO.setBalancetype( tgenebalancetypedescPK.getBalancetype() );
        tgenebalancetypedescPKDTO.setBalancegroup( tgenebalancetypedescPK.getBalancegroup() );
        tgenebalancetypedescPKDTO.setLanguagecode( tgenebalancetypedescPK.getLanguagecode() );

        return tgenebalancetypedescPKDTO;
    }
}
