isInline
Returns true
if this descriptor describes a serializable value class which underlying value is serialized directly.
This property is true for serializable @JvmInline value
classes:
@Serializable
class User(val name: Name)
@Serializable
@JvmInline
value class Name(val value: String)
User.serializer().descriptor.isInline // false
User.serializer().descriptor.getElementDescriptor(0).isInline // true
Name.serializer().descriptor.isInline // true
Content copied to clipboard