TariffV2QueryMapperImpl.java

package com.github.jenkaby.bikerental.tariff.web.query.mapper;

import com.github.jenkaby.bikerental.tariff.domain.model.vo.PricingTypeInfo;
import com.github.jenkaby.bikerental.tariff.web.query.dto.PricingTypeResponse;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    comments = "version: 1.6.3, compiler: IncrementalProcessingEnvironment from gradle-language-java-9.4.1.jar, environment: Java 21.0.10 (Amazon.com Inc.)"
)
@Component
public class TariffV2QueryMapperImpl implements TariffV2QueryMapper {

    @Override
    public PricingTypeResponse toResponse(PricingTypeInfo info) {
        if ( info == null ) {
            return null;
        }

        String slug = null;
        String title = null;
        String description = null;

        slug = info.slug();
        title = info.title();
        description = info.description();

        PricingTypeResponse pricingTypeResponse = new PricingTypeResponse( slug, title, description );

        return pricingTypeResponse;
    }
}