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

com.bimface.sdk.utils.ConvertUtils Maven / Gradle / Ivy

The newest version!
package com.bimface.sdk.utils;

import com.bimface.sdk.bean.request.QueryElementIdsRequest;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.util.Map;

/**
 * @author bimface, 2019/07/24
 */
public class ConvertUtils {
    public static Map convertToParamsMap(QueryElementIdsRequest queryElementIdsRequest) {
        Gson gson = new Gson();
        String requestJson = gson.toJson(queryElementIdsRequest);
        return gson.fromJson(requestJson, new TypeToken>(){}.getType());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy