Can I convert data when parsing it from json to MutableLiveData and how if it's possible?
@TypeConverter
fun stringToDatas(string: String) :MutableLiveData<HashMap<String,Any>> {
val liveData = object : TypeToken<MutableLiveData<HashMap<String, Any>>>() {
//here i guess should return it.
//and how can i return it from string to MutableLiveData
}.type
return Gson().fromJson(string, liveData)
}
Thank you.