FloatSerializer

Serializer for Float values.

Deserialization accepts Number (via toFloat()) and String (via toFloatOrNull()). All other types cause an IllegalArgumentException.

Since

1.0

Functions

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

Converts a raw storage value back into the typed representation.

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

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