package com.ankaibei.workFlow.common.flow.model;

import com.ankaibei.workFlow.common.flow.model.FlowEntryVariable.FlowEntryVariableModelMapper;
import com.ankaibei.workFlow.common.flow.vo.FlowEntryVariableVo;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-05-08T14:15:52+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_144 (Oracle Corporation)"
)
public class FlowEntryVariable$FlowEntryVariableModelMapperImpl implements FlowEntryVariableModelMapper {

    @Override
    public FlowEntryVariableVo fromModel(FlowEntryVariable arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowEntryVariableVo flowEntryVariableVo = new FlowEntryVariableVo();

        flowEntryVariableVo.setVariableId( arg0.getVariableId() );
        flowEntryVariableVo.setEntryId( arg0.getEntryId() );
        flowEntryVariableVo.setVariableName( arg0.getVariableName() );
        flowEntryVariableVo.setShowName( arg0.getShowName() );
        flowEntryVariableVo.setVariableType( arg0.getVariableType() );
        flowEntryVariableVo.setBindDatasourceId( arg0.getBindDatasourceId() );
        flowEntryVariableVo.setBindRelationId( arg0.getBindRelationId() );
        flowEntryVariableVo.setBindColumnId( arg0.getBindColumnId() );
        flowEntryVariableVo.setBuiltin( arg0.getBuiltin() );
        flowEntryVariableVo.setCreateTime( arg0.getCreateTime() );

        return flowEntryVariableVo;
    }

    @Override
    public List<FlowEntryVariableVo> fromModelList(List<FlowEntryVariable> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<FlowEntryVariableVo> list = new ArrayList<FlowEntryVariableVo>( arg0.size() );
        for ( FlowEntryVariable flowEntryVariable : arg0 ) {
            list.add( fromModel( flowEntryVariable ) );
        }

        return list;
    }

    @Override
    public FlowEntryVariable toModel(FlowEntryVariableVo arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowEntryVariable flowEntryVariable = new FlowEntryVariable();

        flowEntryVariable.setVariableId( arg0.getVariableId() );
        flowEntryVariable.setEntryId( arg0.getEntryId() );
        flowEntryVariable.setVariableName( arg0.getVariableName() );
        flowEntryVariable.setShowName( arg0.getShowName() );
        flowEntryVariable.setVariableType( arg0.getVariableType() );
        flowEntryVariable.setBindDatasourceId( arg0.getBindDatasourceId() );
        flowEntryVariable.setBindRelationId( arg0.getBindRelationId() );
        flowEntryVariable.setBindColumnId( arg0.getBindColumnId() );
        flowEntryVariable.setBuiltin( arg0.getBuiltin() );
        flowEntryVariable.setCreateTime( arg0.getCreateTime() );

        return flowEntryVariable;
    }

    @Override
    public List<FlowEntryVariable> toModelList(List<FlowEntryVariableVo> arg0) {
        if ( arg0 == null ) {
            return null;
        }

        List<FlowEntryVariable> list = new ArrayList<FlowEntryVariable>( arg0.size() );
        for ( FlowEntryVariableVo flowEntryVariableVo : arg0 ) {
            list.add( toModel( flowEntryVariableVo ) );
        }

        return list;
    }
}
