bartvh
02/13/2019, 12:46 PM(..).set
in an annotiation.
@Serializable
data class SessionState(
@Serializable(with = InstantSerializer::class)
val start: Instant,
val ips: Set<InetAddress>?
)
bartvh
02/13/2019, 1:02 PMobject InetAddressSetSerializer : KSerializer<Set<InetAddress>> by InetAddressSerializer.set
@Serializable(with = InetAddressSetSerializer::class)
but it doesn't seem desirable to me to do it like this every time a collection needs to be serializedsandwwraith
02/13/2019, 2:24 PM