title: Convert json into an object of a class that contains a template variable using gson
body: <p>My Api response looks like this.</p>
  
  <pre><code>{
      "status" : 1,
      "message" : "Some Message",
      "data" : {
      }
  }
  </code></pre>
  
  <p>My Response class looks like this. The type of data changes depending on the request being made.</p>
  
  <pre><code>public class Response&lt;T&gt;{
      @Expose
      @SerializedName("status")
      private Integer status;
  
      @Expose
      @SerializedName("message")
      private String message;
  
      @Expose
      @SerializedName("data")
      private T data;
  
      //Getters and Setters
  }
  </code></pre>
  
  <p>Question 1. How to use gson to parse this json?</p>
  
  <pre><code>Response&lt;ClassA&gt; response = new Gson().fromJson(jsonString, ??);
  </code></pre>
  
  <p>Question 2. How would i write Parcelable implementation for this class.</p>
  
  <pre><code>dest.writeInt(status == null ? 0:status);
  dest.writeString(message);
  ??
  </code></pre>