This class specifies how to deserialize a
Podcasts
object.
It happens that the response could contain three objects with names "song", "album" and "album" that are a JSON Array when they have more than one child, but they are a JSON Object when there is only one child.
-
This is an example of the object with multiple childs.
{
object : [
{
//CHILD_ONE
},
{
//CHILD_TWO
},
{
//CHILD_THREE
}
]
}
This is an example of the object object with just one child
{
object : {
//CHILD_ONE
}
}
This class takes the single child, creates an array and returns an array with that child in those cases.