I called the PetFinder API to get data. When I wanted to show the data on screen I got this error. I used Call sequence to get data and I used enqueue on the ViewModel.
I tried to use fromJson() method but the code gave me error
I called the PetFinder API to get data. When I wanted to show the data on screen I got this error. I used Call sequence to get data and I used enqueue on the ViewModel.
I tried to use fromJson() method but the code gave me error
SOLUTION:
My data class was
and I used Animal when I use enqueue method. I created another data class :
and I used Deneme class instead of Animal