Interface TomlSerializable


public interface TomlSerializable

Marker interface for classes which may be serialized with the reflection serializer. Requires jtoml-serializer-reflect to work as intended.

When de/serializing a TomlSerializable type, all declared non-transient fields are considered. Such fields declared in superclasses are also considered, as long as each superclass is itself marked as TomlSerializable either directly or by inheritance.

A TomlSerializable type that is not a record must have a no-args constructor. If the type is a record, it should not implement the TomlSerializable marker interface. This marker is always ignored for records.