DecimalSerializer

Serializer for Decimal.

JSON encodings emit an unquoted numeric literal from the canonical decimal text and decode from the token's textual content, never through Double. Non-JSON textual encodings use the canonical decimal string.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Decimal
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Decimal)