I’d like to adapt it to something like this: `List...
# ktor
a
I’d like to adapt it to something like this:
List<PaymentStripeCard>
g
You need custom serializer to implement this
a
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
So, you ended up with special class for this data structure instead of simple list?
a
I used the class to bridge between the response and a list
So I just return the items
g
You also can do this with kotlinx.serialization by the way
a
I figured, but I’m under a time constraint and cant spend too long on something