DictionaryMapperImpl.java

package io.featureprobe.api.mapper;

import io.featureprobe.api.dao.entity.Dictionary;
import io.featureprobe.api.dto.DictionaryResponse;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-10-07T17:43:36+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_382 (Red Hat, Inc.)"
)
public class DictionaryMapperImpl implements DictionaryMapper {

    @Override
    public DictionaryResponse entityToResponse(Dictionary dictionary) {
        if ( dictionary == null ) {
            return null;
        }

        DictionaryResponse dictionaryResponse = new DictionaryResponse();

        dictionaryResponse.setKey( dictionary.getKey() );
        dictionaryResponse.setValue( dictionary.getValue() );
        dictionaryResponse.setModifiedTime( dictionary.getModifiedTime() );
        dictionaryResponse.setCreatedTime( dictionary.getCreatedTime() );

        return dictionaryResponse;
    }
}