OrganizationMapperImpl.java

package io.featureprobe.api.mapper;

import io.featureprobe.api.dao.entity.Organization;
import io.featureprobe.api.dto.OrganizationResponse;
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 OrganizationMapperImpl implements OrganizationMapper {

    @Override
    public OrganizationResponse entityToResponse(Organization organization) {
        if ( organization == null ) {
            return null;
        }

        OrganizationResponse organizationResponse = new OrganizationResponse();

        organizationResponse.setId( organization.getId() );
        organizationResponse.setName( organization.getName() );

        return organizationResponse;
    }
}