Our server API returns response as:
{
"22397": {
"granted": 1597078582,
"expires": 0,
"type": "video",
"product_nid": 4029080241
},
"22313": {
"granted": 1594318970,
"expires": 0,
"type": "video",
"product_nid": 40208744145
}
}
Here we don't know the "22397" or "22313" and are dynamic. Using Android Kotlin and Retrofit2.