OBJECT

Structure kind for singleton objects defined with object keyword. By default, objects are serialized as empty structures without any state and their identity is preserved across serialization within the same process, so you always have the same instance of the object.

Empty structure is represented as a call to Encoder.beginStructure with the following CompositeEncoder.endStructure without any intermediate encodings.

Functions

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String