AttributeMapperImpl.java

package io.featureprobe.api.mapper;

import io.featureprobe.api.dao.entity.Attribute;
import io.featureprobe.api.dto.AttributeResponse;
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 AttributeMapperImpl implements AttributeMapper {

    @Override
    public AttributeResponse entityToResponse(Attribute attribute) {
        if ( attribute == null ) {
            return null;
        }

        AttributeResponse attributeResponse = new AttributeResponse();

        attributeResponse.setKey( attribute.getKey() );

        return attributeResponse;
    }
}