0

I am trying to convert my kotlin-data-class into Realm supported model class but getting the above error.

I have followed this below link to convert my data class into realm supported class Kotlin data class of RealmObject

This error has come because of my model class contains RealmList<Any> and As I am using JSON to Kotlin class plugin for converting my JSON object to the corresponding kotlin data class(which has converted it to List type)

Below is my Realm kotlin class

open class View :RealmObject() {
    var alignment: String?=null
    var bg_color: String?=null
    var company_id: String?=null
    var group_title_text: GroupTitleText?=null
    var layout: String?=null
    var questions: RealmList<Any>?=null
    var screen_id: String?=null
    var survey_id: String?=null
    var title: String?=null
}

Please help me find a solution. Any help is appreciated.

tynn
  • 38,113
  • 8
  • 108
  • 143
B.shruti
  • 1,589
  • 1
  • 21
  • 41

0 Answers0