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