title: Create a ArrayList of data class objects from a String in Kotlin
body: <p>I have a Kotlin data class</p>
  
  <p><code>data class Item (val content: String) {}</code></p>
  
  <p>In my app I use an <code>myData: ArrayList&lt;Item&gt;</code>.</p>
  
  <p>To provide persistant storage the app writes this list to a file everytime it is changed:
  <code>configFile.writeText(myData.toString())</code></p>
  
  <p>At startup it reads the file and with <code>configfile.readFile()</code>. The returned string look like this:
  <code>[Item(content=Click #1), Item(content=Click #2)]</code></p>
  
  <p>How can I create the arraylist from this string?</p>