Class AbstractMTAdapter
- java.lang.Object
-
- com.prowidesoftware.swift.model.mt.AbstractMTAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<AbstractMT>
,com.google.gson.JsonSerializer<AbstractMT>
public class AbstractMTAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<AbstractMT>, com.google.gson.JsonDeserializer<AbstractMT>
Json serialization for AbstractMT and subclasses using Gson.- Since:
- 7.10.3
-
-
Constructor Summary
Constructors Constructor Description AbstractMTAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractMT
deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
com.google.gson.JsonElement
serialize(AbstractMT src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(AbstractMT src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<AbstractMT>
-
deserialize
public AbstractMT deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<AbstractMT>
- Throws:
com.google.gson.JsonParseException
-
-