title: Retrofit with Gson Response.body() not working
body: <p>I'am trying to parse data to a recyclerview, i had some problems about expecting JSONArray/JSONObject that i fixed with some help, but this moment I am a little bit lost in what to do in the <code>Onresponse</code>, the original - <code>generatePhonesList(response.body())</code> isnt working.</p>
  
  <p>this is my json and i am trying to parse the data inside the <code>array results[]</code> : </p>
  
  <pre><code>{
    "success": true,
    "metadata": {
      "sort": "POPULARITY",
      "total_products": 20,
      "title": "Phones &amp; Tablets",
      "results": [
        {
          "sku": "1",
          "name": "Samsung Galaxy S9",
          "brand": "Samsung",
          "max_saving_percentage": 30,
          "price": 53996,
          "special_price": 37990,
          "image": "https://cdn2.gsmarena.com/vv/bigpic/samsung-galaxy-s9-.jpg",
          "rating_average": 5
        },
  </code></pre>
  
  <p>MainActivity (CALL and Recyclerview creation) : </p>
  
  <pre><code>    GetPhoneDataService service = RetrofitInstance.getRetrofitInstance().create(GetPhoneDataService.class);
  
          Call&lt;APIReponse&gt; call = service.getAllPhones();
  
         call.enqueue(new Callback&lt;APIReponse&gt;() {
             @Override
             public void onResponse(Call&lt;APIReponse&gt; call, Response&lt;APIReponse&gt; response) {
                generatePhonesList(response.body());
  
  
             }
  
             @Override
             public void onFailure(Call&lt;APIReponse&gt; call, Throwable t) {
                  Log.e("eee" , "" + t.getMessage());
             }
         });
  
      }
  
      private void generatePhonesList(List&lt;Result&gt; phonesList){
          recyclerView = findViewById(R.id.recyclerView);
          adapter = new PhonesAdapter(phonesList,this);
          RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(MainActivity.this);
          recyclerView.setLayoutManager(layoutManager);
          recyclerView.setAdapter(adapter);
      }
  </code></pre>
  
  <p>this is the POJO Class's created in jsonschema2pojo :</p>
  
  <pre><code>public class APIReponse {
  
      @SerializedName("success")
      @Expose
      private Boolean success;
      @SerializedName("metadata")
      @Expose
      private Metadata metadata;
  
      public Boolean getSuccess() {
          return success;
      }
  
      public void setSuccess(Boolean success) {
          this.success = success;
      }
  
      public Metadata getMetadata() {
          return metadata;
      }
  
      public void setMetadata(Metadata metadata) {
          this.metadata = metadata;
      }
  
  }
  </code></pre>
  
  <p>2 class</p>
  
  <pre><code>public class MetaData {
      @SerializedName("sort")
      @Expose
      private String sort;
      @SerializedName("total_products")
      @Expose
      private Integer totalProducts;
      @SerializedName("title")
      @Expose
      private String title;
      @SerializedName("results")
      @Expose
      private List&lt;Result&gt; results = null;
  
      public String getSort() {
          return sort;
      }
  
      public void setSort(String sort) {
          this.sort = sort;
      }
  
      public Integer getTotalProducts() {
          return totalProducts;
      }
  
      public void setTotalProducts(Integer totalProducts) {
          this.totalProducts = totalProducts;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public List&lt;Result&gt; getResults() {
          return results;
      }
  
      public void setResults(List&lt;Result&gt; results) {
          this.results = results;
      }
  }
  
  </code></pre>
  
  <p>3 class: </p>
  
  <pre><code>
  public class Result {
  
      @SerializedName("sku")
      @Expose
      private String sku;
      @SerializedName("name")
      @Expose
      private String name;
      @SerializedName("brand")
      @Expose
      private String brand;
      @SerializedName("max_saving_percentage")
      @Expose
      private Integer maxSavingPercentage;
      @SerializedName("price")
      @Expose
      private Integer price;
      @SerializedName("special_price")
      @Expose
      private Integer specialPrice;
      @SerializedName("image")
      @Expose
      private String image;
      @SerializedName("rating_average")
      @Expose
      private Integer ratingAverage;
  
      public String getSku() {
          return sku;
      }
  
      public void setSku(String sku) {
          this.sku = sku;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getBrand() {
          return brand;
      }
  
      public void setBrand(String brand) {
          this.brand = brand;
      }
  
      public Integer getMaxSavingPercentage() {
          return maxSavingPercentage;
      }
  
      public void setMaxSavingPercentage(Integer maxSavingPercentage) {
          this.maxSavingPercentage = maxSavingPercentage;
      }
  
      public Integer getPrice() {
          return price;
      }
  
      public void setPrice(Integer price) {
          this.price = price;
      }
  
      public Integer getSpecialPrice() {
          return specialPrice;
      }
  
      public void setSpecialPrice(Integer specialPrice) {
          this.specialPrice = specialPrice;
      }
  
      public String getImage() {
          return image;
      }
  
      public void setImage(String image) {
          this.image = image;
      }
  
      public Integer getRatingAverage() {
          return ratingAverage;
      }
  
      public void setRatingAverage(Integer ratingAverage) {
          this.ratingAverage = ratingAverage;
      }
  }
  </code></pre>