toString
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 = ZeroAsByteSerializer()
val serializerAsString: String = serializer.toString()
val expected: String = checkNotNull(serializer::class.simpleName)
assertEquals(expected, serializerAsString)
Content copied to clipboard