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
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);
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 !