intSerializer

inline fun <T> intSerializer(crossinline decode: (Int) -> T, crossinline encode: (T) -> Int, nameOverride: String? = null): KSerializer<T>(source)