CountryListSerializer

object CountryListSerializer : KSerializer<List<Country>>

A customized KSerializer to convert between a JSON of Map into List. E.g {"US": "United States","AU": "Australia"} will be serialized to List(US, AU).

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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