Realm - Property cannot be marked dynamic because its type cannot be represented in Objective-C
<p>I am trying to implement below scenario, but i am facing the issue</p>

<pre><code>class CommentsModel: Object {
  dynamic var commentId = ""
  dynamic var ownerId: UserModel?
  dynamic var treeLevel = 0
  dynamic var message = ""
  dynamic var modifiedTs = NSDate()
  dynamic var createdTs = NSDate()

 //facing issue here 
 dynamic var childComments = List&lt;CommentsModel&gt;()
}
</code></pre>

<p>I have a comments model which has non optional properties in which childComments is List of same Comments model class. In this when i declare <code>dynamic var childComments = List&lt;CommentsModel&gt;()</code> </p>

<blockquote>
  <p>it shows me Property cannot be marked dynamic because its type cannot
  be represented in Objective-C.</p>
</blockquote>

<p>Please help me how to achieve my requirement</p>