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

import com.qsoft.rs.sincoar.dto.TarmtagarmaPKDTO;
import com.qsoft.rs.sincoar.model.TarmtagarmaPK;
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 TarmtagarmaPKMapperImpl implements TarmtagarmaPKMapper {

    @Override
    public TarmtagarmaPK getEntidad(TarmtagarmaPKDTO tarmtagarmaPK) {
        if ( tarmtagarmaPK == null ) {
            return null;
        }

        TarmtagarmaPK tarmtagarmaPK1 = new TarmtagarmaPK();

        tarmtagarmaPK1.setCarma( tarmtagarmaPK.getCarma() );
        tarmtagarmaPK1.setCtag( tarmtagarmaPK.getCtag() );

        return tarmtagarmaPK1;
    }

    @Override
    public TarmtagarmaPKDTO getDto(TarmtagarmaPK tarmtagarmaPK) {
        if ( tarmtagarmaPK == null ) {
            return null;
        }

        TarmtagarmaPKDTO tarmtagarmaPKDTO = new TarmtagarmaPKDTO();

        tarmtagarmaPKDTO.setCarma( tarmtagarmaPK.getCarma() );
        tarmtagarmaPKDTO.setCtag( tarmtagarmaPK.getCtag() );

        return tarmtagarmaPKDTO;
    }
}
