deserialize
open override fun deserialize(json: JsonElement, typeOfT: Type, context: JsonDeserializationContext?): AxochatPacket?
Gson invokes this call-back method during deserialization when it encounters a field of the specified type.
In the implementation of this call-back method, you should consider invoking JsonDeserializationContext.deserialize method to create objects for any non-trivial field of the returned object. However, you should never invoke it on the same type passing json since that will cause an infinite loop (Gson will call your call-back method again).
Return
a deserialized object of the specified type typeOfT which is a subclass of T
Parameters
json
The Json data being deserialized
type Of T
The type of the Object to deserialize to
Throws
Json Parse Exception
if json is not in the expected format of typeofT