Class MethodDeserializer
java.lang.Object
edu.university.ecs.lab.common.models.serialization.MethodDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Method>
Class for deserializing a Method when using Gson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) private Method
jsonToEndpoint
(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context) private Method
jsonToMethod
(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
-
Constructor Details
-
MethodDeserializer
public MethodDeserializer()
-
-
Method Details
-
deserialize
public Method deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Method>
- Throws:
com.google.gson.JsonParseException
-
jsonToMethod
private Method jsonToMethod(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-
jsonToEndpoint
private Method jsonToEndpoint(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-