How to create the model from a dynamic api and pass it to Realmlist in kotlin
need help. i have a dynmic API key as shown in pic. based on some solutions, i need to use map to handle dynamic. my issue is how to create the model for Realmlist as it is complaining on Map. pls help.
already created model for single item:
open class SingleMultipleOptions (
var key :String ?= null,
var option_name:String?= null,
var id:Long?= null,
var item_price:Double?= null ,
var item_name:String?= null
)
and this is for Map
@SerializedName("multiple_item_options")...