Gson adapter used to serialize and serialize scala.collection.Map to and from JSON.
Gson adapter to be used to serialize and serialize scala.Option to and from JSON with Gson.
Gson adapter to be used to serialize and serialize scala.collection.Seq to and from JSON with Gson.
Gson adapter to be used to serialize and serialize TypeWrapper to and from JSON with Gson.
For serializing/deserializing arbitrary interface types.
For serializing/deserializing arbitrary interface types. From stackoverflow with some modifications to handle generic interfaces.
Taken from Stackoverflow (and translated to scala).
Taken from Stackoverflow (and translated to scala). http://stackoverflow.com/questions/16476513/class-a-declares-multiple-json-fields
To be used as a wrapper for interfaces.
To be used as a wrapper for interfaces. It includes the actual class name in the serialization in order to instantiate the new object on deserialization.
Type of value.
Actual value to serialize.
Utility for Json used to serialize / deserialize IOBase and MLModel types.
Gson adapter to be used to serialize and serialize TypeWrapper to and from JSON with Gson.
To be used when the developer wishes to to include a interface type in the model object, or one of its fields.
e.g. to store a List[Bird], or just val b: Bird, where trait Bird class Robin() extends Bird class Eagle() extends Bird the Bird type should be wrapped in TypeWrapper: case class Aviary(specialBird: TypeWrapper[Bird], commonBirds: List[TypeWrapper[Bird]])