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

import com.qsoft.rs.sincoar.dto.TbpmlogmailDTO;
import com.qsoft.rs.sincoar.model.Tbpmlogmail;
import javax.annotation.processing.Generated;

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

    @Override
    public Tbpmlogmail getEntidad(TbpmlogmailDTO tbpmlogmail) {
        if ( tbpmlogmail == null ) {
            return null;
        }

        Tbpmlogmail tbpmlogmail1 = new Tbpmlogmail();

        tbpmlogmail1.setClogmail( tbpmlogmail.getClogmail() );
        tbpmlogmail1.setAsunto( tbpmlogmail.getAsunto() );
        tbpmlogmail1.setCorreo( tbpmlogmail.getCorreo() );
        tbpmlogmail1.setDescripcionerror( tbpmlogmail.getDescripcionerror() );
        tbpmlogmail1.setEstado( tbpmlogmail.getEstado() );
        tbpmlogmail1.setContenido( tbpmlogmail.getContenido() );
        tbpmlogmail1.setFecharegistro( tbpmlogmail.getFecharegistro() );

        return tbpmlogmail1;
    }

    @Override
    public TbpmlogmailDTO getDto(Tbpmlogmail tbpmlogmail) {
        if ( tbpmlogmail == null ) {
            return null;
        }

        TbpmlogmailDTO tbpmlogmailDTO = new TbpmlogmailDTO();

        tbpmlogmailDTO.setClogmail( tbpmlogmail.getClogmail() );
        tbpmlogmailDTO.setAsunto( tbpmlogmail.getAsunto() );
        tbpmlogmailDTO.setCorreo( tbpmlogmail.getCorreo() );
        tbpmlogmailDTO.setDescripcionerror( tbpmlogmail.getDescripcionerror() );
        tbpmlogmailDTO.setEstado( tbpmlogmail.getEstado() );
        tbpmlogmailDTO.setContenido( tbpmlogmail.getContenido() );
        tbpmlogmailDTO.setFecharegistro( tbpmlogmail.getFecharegistro() );

        return tbpmlogmailDTO;
    }
}
