Join Slack
Powered by
I’d like to adapt it to something like this: `List...
# ktor
a
andrew
08/01/2019, 9:55 PM
I’d like to adapt it to something like this:
List<PaymentStripeCard>
g
gildor
08/02/2019, 2:08 AM
You need custom serializer to implement this
a
andrew
08/03/2019, 2:00 AM
I ended up using GSON and a class to bridge the response. In the future I may put in the effort to use kotlinx serialization again.
g
gildor
08/03/2019, 5:39 AM
So, you ended up with special class for this data structure instead of simple list?
a
andrew
08/04/2019, 3:13 PM
I used the class to bridge between the response and a list
andrew
08/04/2019, 3:13 PM
So I just return the items
g
gildor
08/05/2019, 5:48 AM
You also can do this with kotlinx.serialization by the way
a
andrew
08/05/2019, 1:47 PM
I figured, but I’m under a time constraint and cant spend too long on something
Open in Slack
Previous
Next