Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.google.gson.Gson;
- import com.google.gson.JsonElement;
- public void onResponse(@NonNull Call<JsonElement> call, @NonNull Response<JsonElement> response)
- {
- UserModel userResponse = new Gson().fromJson(response.body().getAsJsonObject().get("result").toString(), UserModel.class);
- }
Add Comment
Please, Sign In to add comment