Package-level declarations


Link copied to clipboard
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).

Link copied to clipboard
abstract class EnumIgnoreUnknownSerializer<T : Enum<T>>(values: Array<out T>, defaultValue: T) : KSerializer<T>

Parses an enum using values, and on unknown values, falls back to defaultValue.