title: Kotlin - generate toString() for a non-data class
body: <p><strong>Situation:</strong></p>
  
  <p>I have a class with <code>lateinit</code> fields, so they are not present in the constructor:</p>
  
  <pre><code>class ConfirmRequest() {
      lateinit var playerId: String
  }
  </code></pre>
  
  <p>I'd like to have a <code>toString()</code> method with all fields and don't want to write it manually, to avoid boiler print. In Java I'd use the <em>Lombok</em> <code>@ToString</code> annotation for this problem. </p>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there any way to implement it in Kotlin?</p>