Class MethodCallDeserializer
java.lang.Object
edu.university.ecs.lab.common.models.serialization.MethodCallDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<MethodCall>
public class MethodCallDeserializer
extends Object
implements com.google.gson.JsonDeserializer<MethodCall>
Class for deserializing a MethodCall when using Gson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) private MethodCall
jsonToMethodCall
(com.google.gson.JsonObject json) private RestCall
jsonToRestCall
(com.google.gson.JsonObject json)
-
Constructor Details
-
MethodCallDeserializer
public MethodCallDeserializer()
-
-
Method Details
-
deserialize
public MethodCall 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<MethodCall>
- Throws:
com.google.gson.JsonParseException
-
jsonToMethodCall
private MethodCall jsonToMethodCall(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-
jsonToRestCall
private RestCall jsonToRestCall(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException - Throws:
com.google.gson.JsonParseException
-