title: How convert Object String to Data Class in kotlin
body: <p>I want to convert below .tostring to data class how to convert?</p>
  
  <pre><code>InstrumentResponse(AGM=false, AllOrNone=true, Bonus=true, Dividend=true, EGM=false, AuctionDetailInfo=AuctionDetailInfo(AuctionNumber=0, AuctionStatus=0, InitiatorType=0)
  </code></pre>
  
  <p>What I am trying to do to pass data class though bundle from one fragment to another but doing with <code>bundle.putString</code> how to convert this again to a data class ?  </p>
  
  <p>Is there a better way to achieve ?  or how to convert <code>dataClass.toString</code> to Data class ?</p>