I have an abstract ViewModel class,let's call it AbstractListViewModel. It has a itemsList of type MutableLiveData < List < JSONObject > >. JSONObject has 2 children : JSONChildOne and JSONChildTwo. I would like to override the property in a AbstractViewModel child to type MutableLiveData< List < JSONChildOne > >.
I tried to override in the child class to MutableLiveData < List < JSONChildOne > >
AbstractListViewModel :
abstract val itemsList : MutableLiveData<List<JSONObject>>
ChildOneListViewModel :
override val itemsList = MutableLiveData<List<JSONChildOne>>()
Property type is "MutableLiveData < List < JSONObject > > ", which is not a subtype of overriden