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

import com.qsoft.rs.sincoar.dto.TgeneservicesDTO;
import com.qsoft.rs.sincoar.model.Tgeneservices;
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 TgeneservicesMapperImpl implements TgeneservicesMapper {

    @Override
    public Tgeneservices getEntidad(TgeneservicesDTO tgeneservices) {
        if ( tgeneservices == null ) {
            return null;
        }

        Tgeneservices tgeneservices1 = new Tgeneservices();

        tgeneservices1.setServicecode( tgeneservices.getServicecode() );
        tgeneservices1.setDescription( tgeneservices.getDescription() );
        tgeneservices1.setClassname( tgeneservices.getClassname() );
        tgeneservices1.setAutomatic( tgeneservices.getAutomatic() );

        return tgeneservices1;
    }

    @Override
    public TgeneservicesDTO getDto(Tgeneservices tgeneservices) {
        if ( tgeneservices == null ) {
            return null;
        }

        TgeneservicesDTO tgeneservicesDTO = new TgeneservicesDTO();

        tgeneservicesDTO.setServicecode( tgeneservices.getServicecode() );
        tgeneservicesDTO.setDescription( tgeneservices.getDescription() );
        tgeneservicesDTO.setClassname( tgeneservices.getClassname() );
        tgeneservicesDTO.setAutomatic( tgeneservices.getAutomatic() );

        return tgeneservicesDTO;
    }
}
