ColorSerializer

object ColorSerializer : KSerializer<ContentColor>

Serializes color Int values from/to hex format "#RRGGBB"

Properties

Link copied to clipboard
const val BASE: Int = 16
Link copied to clipboard
open override val descriptor: SerialDescriptor
Link copied to clipboard
const val PREFIX: Char = '#'
Link copied to clipboard
const val SUPPORTED_DIGITS: Int = 6

Functions

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