title: Retrofit parse JSON response from API when model is in "data" object
body: <p>How can I parse this response without having to create a separate response class for each entity.</p>
  
  <pre><code>{
    "data": {
      "id": 100,
      "first_name": "Michael",
      "last_name": "Blankenship"
    }
  }
  </code></pre>
  
  <p>I would like to have a generic class that can reference the data object and then just specify what type of class that should be used to parse the response</p>
  
  <p>Something like this:</p>
  
  <pre><code>@Get
  Call&lt;User&gt; getUser();
  
  @Get
  Call&lt;Status&gt; getStatus();
  </code></pre>
  
  <p>Without having to have multiple response classes for each type</p>
  
  <pre class="lang-java prettyprint-override"><code>public class UserResponse {
      User data;
  }
  
  public class User {
      String first_name;
      String last_name;
  }
  
  public class StatusResponse {
      Status data;
  }
  </code></pre>