encodeBooleanElement

override fun encodeBooleanElement(    descriptor: SerialDescriptor,     index: Int,     value: Boolean)

Encodes a boolean value associated with an element at the given index in serial descriptor. The element at the given index should have PrimitiveKind.BOOLEAN kind.