DoubleSerializer

Serializer for Double values.

Deserialization accepts Number (via toDouble()) and String (via toDoubleOrNull()). All other types cause an IllegalArgumentException.

Since

1.0

Functions

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

Converts a raw storage value back into the typed representation.

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

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