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

import com.ankaibei.workFlow.common.flow.model.FlowTaskComment.FlowTaskCommentModelMapper;
import com.ankaibei.workFlow.common.flow.vo.FlowTaskCommentVo;
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 FlowTaskComment$FlowTaskCommentModelMapperImpl implements FlowTaskCommentModelMapper {

    @Override
    public FlowTaskCommentVo fromModel(FlowTaskComment arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowTaskCommentVo flowTaskCommentVo = new FlowTaskCommentVo();

        flowTaskCommentVo.setId( arg0.getId() );
        flowTaskCommentVo.setProcessInstanceId( arg0.getProcessInstanceId() );
        flowTaskCommentVo.setTaskId( arg0.getTaskId() );
        flowTaskCommentVo.setTaskKey( arg0.getTaskKey() );
        flowTaskCommentVo.setTaskName( arg0.getTaskName() );
        flowTaskCommentVo.setExecutionId( arg0.getExecutionId() );
        flowTaskCommentVo.setMultiInstanceExecId( arg0.getMultiInstanceExecId() );
        flowTaskCommentVo.setApprovalType( arg0.getApprovalType() );
        flowTaskCommentVo.setTaskComment( arg0.getTaskComment() );
        flowTaskCommentVo.setDelegateAssignee( arg0.getDelegateAssignee() );
        flowTaskCommentVo.setCustomBusinessData( arg0.getCustomBusinessData() );
        flowTaskCommentVo.setCreateUserId( arg0.getCreateUserId() );
        flowTaskCommentVo.setCreateLoginName( arg0.getCreateLoginName() );
        flowTaskCommentVo.setCreateUsername( arg0.getCreateUsername() );
        flowTaskCommentVo.setCreateTime( arg0.getCreateTime() );

        return flowTaskCommentVo;
    }

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

        List<FlowTaskCommentVo> list = new ArrayList<FlowTaskCommentVo>( arg0.size() );
        for ( FlowTaskComment flowTaskComment : arg0 ) {
            list.add( fromModel( flowTaskComment ) );
        }

        return list;
    }

    @Override
    public FlowTaskComment toModel(FlowTaskCommentVo arg0) {
        if ( arg0 == null ) {
            return null;
        }

        FlowTaskComment flowTaskComment = new FlowTaskComment();

        flowTaskComment.setId( arg0.getId() );
        flowTaskComment.setProcessInstanceId( arg0.getProcessInstanceId() );
        flowTaskComment.setTaskId( arg0.getTaskId() );
        flowTaskComment.setTaskKey( arg0.getTaskKey() );
        flowTaskComment.setTaskName( arg0.getTaskName() );
        flowTaskComment.setExecutionId( arg0.getExecutionId() );
        flowTaskComment.setMultiInstanceExecId( arg0.getMultiInstanceExecId() );
        flowTaskComment.setApprovalType( arg0.getApprovalType() );
        flowTaskComment.setTaskComment( arg0.getTaskComment() );
        flowTaskComment.setDelegateAssignee( arg0.getDelegateAssignee() );
        flowTaskComment.setCustomBusinessData( arg0.getCustomBusinessData() );
        flowTaskComment.setCreateUserId( arg0.getCreateUserId() );
        flowTaskComment.setCreateLoginName( arg0.getCreateLoginName() );
        flowTaskComment.setCreateUsername( arg0.getCreateUsername() );
        flowTaskComment.setCreateTime( arg0.getCreateTime() );

        return flowTaskComment;
    }

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

        List<FlowTaskComment> list = new ArrayList<FlowTaskComment>( arg0.size() );
        for ( FlowTaskCommentVo flowTaskCommentVo : arg0 ) {
            list.add( toModel( flowTaskCommentVo ) );
        }

        return list;
    }
}
