public class GsonSerializationHelper
extends java.lang.Object
DynamicModel.DynamicModel| Modifier and Type | Method and Description | 
|---|---|
| static <T> T | serializeDynamicModelProperty(java.lang.Object property,
                             java.lang.reflect.Type type)Takes a property of an object extending  DynamicModeland
 serializes it to the desired type. | 
public static <T> T serializeDynamicModelProperty(java.lang.Object property,
                                  java.lang.reflect.Type type)
DynamicModel and
 serializes it to the desired type. Without this conversion, properties which also happen to
 extend DynamicModel throw an exception when
 trying to cast to their concrete type from the default Gson serialization.T - the generic typeproperty - property of a DynamicModeltype - the type we wish to convert the property to