ExplicitMiredSerializer

Convert a mired color temperature to/from an int value

This is used for color temperature delta values that require the unit in mireds. Since mireds and kelvin do not have a linear relationship, a delta value cannot be translated between the two units. So this converter takes and produces an explicit mired unit only.

Functions

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

Properties

Link copied to clipboard
override val descriptor: SerialDescriptor