Computer scienceMobileAndroidNetworking

Networking Basics

Theory

I forgot

Report a typo

It looks like some annotation here is missing, causing us problems with converting JSON responses to this Person class. What annotation should be there?

//?
class Person(
    val id: Int,
    val name: String,
    val surname: String,
    val phoneNumber: String
)

object PersonItemListSerializer : JsonTransformingSerializer<List<Person>>(ListSerializer(Person.serializer()))
Enter a short text

Create a free account to access the full topic