All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.castled.dtomappers.ExternalAppDTOMapperImpl Maven / Gradle / Ivy

package io.castled.dtomappers;

import io.castled.apps.ExternalApp;
import io.castled.dtos.ExternalAppDTO;
import io.castled.dtos.ExternalAppDTO.ExternalAppDTOBuilder;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-04-04T09:53:06+0000",
    comments = "version: 1.3.1.Final, compiler: javac, environment: Java 11.0.14.1 (Eclipse Adoptium)"
)
public class ExternalAppDTOMapperImpl implements ExternalAppDTOMapper {

    @Override
    public ExternalAppDTO toDTO(ExternalApp externalApp) {
        if ( externalApp == null ) {
            return null;
        }

        ExternalAppDTOBuilder externalAppDTO = ExternalAppDTO.builder();

        externalAppDTO.id( externalApp.getId() );
        externalAppDTO.name( externalApp.getName() );
        externalAppDTO.teamId( externalApp.getTeamId() );
        externalAppDTO.config( externalApp.getConfig() );
        externalAppDTO.status( externalApp.getStatus() );
        externalAppDTO.type( externalApp.getType() );

        return externalAppDTO.build();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy