You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.
I encoutred a problem with deserialization of the attribute ResponseMessage.type . When I deserialize a Json like this one : "fulfillment": { "speech": "Howdy.", "messages": [ { "type": 0, "speech": "Howdy." } ] },
the attribute 'type' of ResponseMessage.ResponseSpeech is null.
Here is my code : ResponseSpeech re = (ResponseSpeech)GsonFactory.getDefaultFactory().getGson().fromJson("{ \"speech\": \"Hey!\",\"messages\": [{\"type\": 0,\"speech\": \"Howdy.\" }]}", Fulfillment.class).getMessages().get(0);
Thanks !
The text was updated successfully, but these errors were encountered:
Hi !
I encoutred a problem with deserialization of the attribute ResponseMessage.type . When I deserialize a Json like this one :
"fulfillment": { "speech": "Howdy.", "messages": [ { "type": 0, "speech": "Howdy." } ] },
the attribute 'type' of ResponseMessage.ResponseSpeech is null.
Here is my code :
ResponseSpeech re = (ResponseSpeech)GsonFactory.getDefaultFactory().getGson().fromJson("{ \"speech\": \"Hey!\",\"messages\": [{\"type\": 0,\"speech\": \"Howdy.\" }]}", Fulfillment.class).getMessages().get(0);
Thanks !
The text was updated successfully, but these errors were encountered: