How do I create a JSON data class for this sample
Here is the JSON sample and I need data classes for this sample.
[
{
"id": "a",
"symbol": "tiger",
"name": "Tiger",
},
{
"id": "b",
"symbol": "dog",
"name": "Dog",
}
]
I am able to auto generate the classes but working with it is something I am not able to understand. I am using Retrofit, Moshi and unable to receive the response when I make the GET call. Let me know in comments if you require the complete code.