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

import com.qsoft.rs.sincoar.dto.TgenechannelsdescPKDTO;
import com.qsoft.rs.sincoar.model.TgenechannelsdescPK;
import javax.annotation.processing.Generated;

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

    @Override
    public TgenechannelsdescPK getEntidad(TgenechannelsdescPKDTO tgenechannelsdescPK) {
        if ( tgenechannelsdescPK == null ) {
            return null;
        }

        TgenechannelsdescPK tgenechannelsdescPK1 = new TgenechannelsdescPK();

        tgenechannelsdescPK1.setChannelcode( tgenechannelsdescPK.getChannelcode() );
        tgenechannelsdescPK1.setLanguagecode( tgenechannelsdescPK.getLanguagecode() );

        return tgenechannelsdescPK1;
    }

    @Override
    public TgenechannelsdescPKDTO getDto(TgenechannelsdescPK tgenechannelsdescPK) {
        if ( tgenechannelsdescPK == null ) {
            return null;
        }

        TgenechannelsdescPKDTO tgenechannelsdescPKDTO = new TgenechannelsdescPKDTO();

        tgenechannelsdescPKDTO.setChannelcode( tgenechannelsdescPK.getChannelcode() );
        tgenechannelsdescPKDTO.setLanguagecode( tgenechannelsdescPK.getLanguagecode() );

        return tgenechannelsdescPKDTO;
    }
}
