toString

override fun toString(): String

Returns the string representation of this serializer, corresponding to its simple name.


Calling from Kotlin

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

val serializer = EmailAddressAsStringSerializer()
val serializerAsString: String = serializer.toString()
val expected: String = checkNotNull(serializer::class.simpleName)
assertEquals(expected, serializerAsString)