is going to be a string representing a postgres data type, but I might be able to use that with a
mapOf
or something to determine the relevant type.
a
andylamax
10/05/2021, 7:15 AM
A bit away from the question, but this is not use case for a data class. You get a lot of overhead with no benefits at all. Just use a plain class instead for this
j
Jonathan Hollingsworth
10/05/2021, 7:20 AM
There are some benefits in the wider usage - which is basically acting as a way of deserializing JSON data from a client app into a known structure.
I totally get the point though; I’m a Kotlin noob and might well be going about this the wrong way.