GSON different value for same key
<p>I am currently using Gson and Retrofit for my Android project which automatically parse the API needed for me. However, I realized that the API contains a value in which it can be a boolean or an Object for different types of data in the API.</p>

<p>For example</p>

<pre><code>    ...
        {
          "media": false,
        },
        {
          "media": {
            "mp4": "http://sample.com/something.mp4",
"jpg": "http://sample.com/something.jpg",
         }
        },
    ...
</code></pre>

<p>How exactly should my Gson model be like?</p>

<pre><code>@SerializedName("media")
Object images;
</code></pre>