IntSerializer

Serializer for Int values.

Deserialization accepts Number (via toInt()) and String (via toIntOrNull()). All other types cause an IllegalArgumentException.

Since

1.0

Functions

Link copied to clipboard
open override fun deserialize(raw: Any): Int

Converts a raw storage value back into the typed representation.

Link copied to clipboard
open override fun serialize(value: Int): Any

Converts a typed value into a raw form suitable for storage (e.g. a string, number, or map).