public class JsonHelper
extends java.lang.Object
| Constructor and Description |
|---|
JsonHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addValueIfNotNullValue(com.google.gson.JsonObject jsonResult,
java.lang.String propertyName,
com.google.gson.JsonElement value)
Add value to jsonResult if value is not null.
|
public static void addValueIfNotNullValue(com.google.gson.JsonObject jsonResult,
java.lang.String propertyName,
com.google.gson.JsonElement value)
jsonResult - json resultpropertyName - property namevalue - value for the propertyName