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

import com.qsoft.rs.sincoar.dto.TgenecurrencyratePKDTO;
import com.qsoft.rs.sincoar.model.TgenecurrencyratePK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenecurrencyratePK getEntidad(TgenecurrencyratePKDTO tgenecurrencyratePK) {
        if ( tgenecurrencyratePK == null ) {
            return null;
        }

        TgenecurrencyratePK tgenecurrencyratePK1 = new TgenecurrencyratePK();

        tgenecurrencyratePK1.setCurrencycode( tgenecurrencyratePK.getCurrencycode() );
        tgenecurrencyratePK1.setDateto( tgenecurrencyratePK.getDateto() );

        return tgenecurrencyratePK1;
    }

    @Override
    public TgenecurrencyratePKDTO getDto(TgenecurrencyratePK tgenecurrencyratePK) {
        if ( tgenecurrencyratePK == null ) {
            return null;
        }

        TgenecurrencyratePKDTO tgenecurrencyratePKDTO = new TgenecurrencyratePKDTO();

        tgenecurrencyratePKDTO.setCurrencycode( tgenecurrencyratePK.getCurrencycode() );
        tgenecurrencyratePKDTO.setDateto( tgenecurrencyratePK.getDateto() );

        return tgenecurrencyratePKDTO;
    }
}
