FlexibleListSerializer

Custom serializer that handles server inconsistencies where a list field might be sent as:

  • A proper JSON array: ...

  • An empty string: ""

  • A number: 0

  • null

This converts non-array values to empty list.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): List<WaitingRoomParticipant>?
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: List<WaitingRoomParticipant>?)