Send complex object using Retrofit2
问题 I'm trying to send a complex object as a parameter of my request using Retrofit2 and Kotlin. Structure of that object is the following: { "id": "..." "token": "..." "message": "..." "list1": [ { "id": 1, "value": 2 }, { "id": 2, "value": 5 } //and so on... ] "list2": [ { "id": 10, "value": 16 }, { "id": 11, "value": 21 } //and so on... ] //and so on... } The number of list fields is various (could be 2 lists, could be 10) as well as the number of items inside each list. I'm using the