package com.engine.recruit.util;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

/**
 * @author:dxfeng
 * @createTime: 2023/11/02
 * @version: 1.0
 */
public class RecruitUtil {
    /**
     * 将Map转换为对象
     *
     * @param map
     * @param cls
     * @return
     */
    public static <T> T parseMap2Object(Map<String, Object> map, Class<T> cls) {
        return JSONObject.parseObject(JSONObject.toJSONString(map), cls);
    }

}
