descriptor

Describes the structure of the serializable representation of EmailAddress, produced by this serializer.

See the KSerializer.descriptor property for more details.


Calling from Kotlin

Here's an example of calling this property from Kotlin code:

val serializer = EmailAddressAsStringSerializer()
val descriptor: SerialDescriptor = serializer.descriptor
val expected: SerialDescriptor = PrimitiveSerialDescriptor(
serialName = "$serializer",
PrimitiveKind.STRING
)
assertEquals(expected, descriptor)