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

import com.qsoft.rs.sincoar.dto.TgenelanguageDTO;
import com.qsoft.rs.sincoar.model.Tgenelanguage;
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 TgenelanguageMapperImpl implements TgenelanguageMapper {

    @Override
    public Tgenelanguage getEntidad(TgenelanguageDTO tgenelanguage) {
        if ( tgenelanguage == null ) {
            return null;
        }

        Tgenelanguage tgenelanguage1 = new Tgenelanguage();

        tgenelanguage1.setLanguagecode( tgenelanguage.getLanguagecode() );
        tgenelanguage1.setDescription( tgenelanguage.getDescription() );

        return tgenelanguage1;
    }

    @Override
    public TgenelanguageDTO getDto(Tgenelanguage tgenelanguage) {
        if ( tgenelanguage == null ) {
            return null;
        }

        TgenelanguageDTO tgenelanguageDTO = new TgenelanguageDTO();

        tgenelanguageDTO.setLanguagecode( tgenelanguage.getLanguagecode() );
        tgenelanguageDTO.setDescription( tgenelanguage.getDescription() );

        return tgenelanguageDTO;
    }
}
