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

import com.ankaibei.workFlow.common.flow.model.FlowMessage.FlowMessageModelMapper;
import com.ankaibei.workFlow.common.flow.vo.FlowMessageVo;
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 FlowMessage$FlowMessageModelMapperImpl implements FlowMessageModelMapper {

    @Override
    public FlowMessageVo fromModel(FlowMessage arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowMessageVo flowMessageVo = new FlowMessageVo();

        flowMessageVo.setMessageId( arg0.getMessageId() );
        flowMessageVo.setMessageType( arg0.getMessageType() );
        flowMessageVo.setMessageContent( arg0.getMessageContent() );
        flowMessageVo.setRemindCount( arg0.getRemindCount() );
        flowMessageVo.setWorkOrderId( arg0.getWorkOrderId() );
        flowMessageVo.setProcessDefinitionId( arg0.getProcessDefinitionId() );
        flowMessageVo.setProcessDefinitionKey( arg0.getProcessDefinitionKey() );
        flowMessageVo.setProcessDefinitionName( arg0.getProcessDefinitionName() );
        flowMessageVo.setProcessInstanceId( arg0.getProcessInstanceId() );
        flowMessageVo.setProcessInstanceInitiator( arg0.getProcessInstanceInitiator() );
        flowMessageVo.setTaskId( arg0.getTaskId() );
        flowMessageVo.setTaskDefinitionKey( arg0.getTaskDefinitionKey() );
        flowMessageVo.setTaskName( arg0.getTaskName() );
        flowMessageVo.setTaskStartTime( arg0.getTaskStartTime() );
        flowMessageVo.setBusinessDataShot( arg0.getBusinessDataShot() );
        flowMessageVo.setUpdateTime( arg0.getUpdateTime() );
        flowMessageVo.setUpdateUserId( arg0.getUpdateUserId() );
        flowMessageVo.setCreateTime( arg0.getCreateTime() );
        flowMessageVo.setCreateUserId( arg0.getCreateUserId() );
        flowMessageVo.setCreateUsername( arg0.getCreateUsername() );

        return flowMessageVo;
    }

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

        List<FlowMessageVo> list = new ArrayList<FlowMessageVo>( arg0.size() );
        for ( FlowMessage flowMessage : arg0 ) {
            list.add( fromModel( flowMessage ) );
        }

        return list;
    }

    @Override
    public FlowMessage toModel(FlowMessageVo arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowMessage flowMessage = new FlowMessage();

        flowMessage.setMessageId( arg0.getMessageId() );
        flowMessage.setMessageType( arg0.getMessageType() );
        flowMessage.setMessageContent( arg0.getMessageContent() );
        flowMessage.setRemindCount( arg0.getRemindCount() );
        flowMessage.setWorkOrderId( arg0.getWorkOrderId() );
        flowMessage.setProcessDefinitionId( arg0.getProcessDefinitionId() );
        flowMessage.setProcessDefinitionKey( arg0.getProcessDefinitionKey() );
        flowMessage.setProcessDefinitionName( arg0.getProcessDefinitionName() );
        flowMessage.setProcessInstanceId( arg0.getProcessInstanceId() );
        flowMessage.setProcessInstanceInitiator( arg0.getProcessInstanceInitiator() );
        flowMessage.setTaskId( arg0.getTaskId() );
        flowMessage.setTaskDefinitionKey( arg0.getTaskDefinitionKey() );
        flowMessage.setTaskName( arg0.getTaskName() );
        flowMessage.setTaskStartTime( arg0.getTaskStartTime() );
        flowMessage.setBusinessDataShot( arg0.getBusinessDataShot() );
        flowMessage.setUpdateTime( arg0.getUpdateTime() );
        flowMessage.setUpdateUserId( arg0.getUpdateUserId() );
        flowMessage.setCreateTime( arg0.getCreateTime() );
        flowMessage.setCreateUserId( arg0.getCreateUserId() );
        flowMessage.setCreateUsername( arg0.getCreateUsername() );

        return flowMessage;
    }

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

        List<FlowMessage> list = new ArrayList<FlowMessage>( arg0.size() );
        for ( FlowMessageVo flowMessageVo : arg0 ) {
            list.add( toModel( flowMessageVo ) );
        }

        return list;
    }
}
