Guest User

Untitled

a guest
Jun 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import com.google.gson.Gson;
  2. import com.google.gson.JsonElement;
  3.  
  4. public void onResponse(@NonNull Call<JsonElement> call, @NonNull Response<JsonElement> response)
  5. {
  6. UserModel userResponse = new Gson().fromJson(response.body().getAsJsonObject().get("result").toString(), UserModel.class);
  7. }
Add Comment
Please, Sign In to add comment