title: Convert POJO to data class Kotlin
body: <p>Recently I started converting my Android project from Java to Kotlin. I am using Retrofit in many classes for fetching data from API. In my project, there are many POJO's and I need to convert them manually to data classes as it doesn't work well with the auto converter tool of Android Studio. </p>
  
  <p>Consider I have model class:</p>
  
  <pre><code>public class LoginResponseMinimal {
  
  String firstName, lastName, token;
  
  public String getFirstName() {
      return firstName;
  }
  
  public void setFirstName(String firstName) {
      this.firstName = firstName;
  }
  
  public String getLastName() {
      return lastName;
  }
  
  public void setLastName(String lastName) {
      this.lastName = lastName;
  }
  
  public String getToken() {
      return token;
  }
  
  public void setToken(String token) {
      this.token = token;
   }
  }
  </code></pre>
  
  <p>Is there any good way that I can directly convert this model class to data class in Kotlin? It's okay for this class to convert manually but I have some classes which have a large number of variables and it would be cumbersome to manually convert it to the data class. </p>