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

com.zuora.sdk.CustomObjectHelper Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.zuora.sdk;

import com.google.gson.reflect.TypeToken;
import org.openapitools.client.JSON;
import org.openapitools.client.model.CustomObject;

import java.lang.reflect.Type;

public class CustomObjectHelper {
    public  T deserializeCustomObject(CustomObject customObject,Class customObjectClass){
        Type classType = TypeToken.get(customObjectClass).getType();
        return new JSON().deserialize(new JSON().serialize(customObject), classType);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy