title: Kotlin Data Class from Json using GSON
body: <p>I have Java POJO class like this:</p>
  
  <pre><code>class Topic {
      @SerializedName("id")
      long id;
      @SerializedName("name")
      String name;
  }
  </code></pre>
  
  <p>and I have a Kotlin data class Like this </p>
  
  <pre><code> data class Topic(val id: Long, val name: String)
  </code></pre>
  
  <p>How to provide the <code>json key</code> to any variables of the <code>kotlin data class</code> like the <code>@SerializedName</code> annotation in java variables ?</p>