Package-level declarations
Types
Annotation to be placed on enum an enum value or sealed class subclass to indicate that it is the default value if an unknown or missing entry is encountered.
Can be added to a data class property or enum instance to specify the name that is used when serializing it to and from JSON.
Annotation to be placed on classes that Kotshi should generate a JsonAdapter for.
Annotation to be applied on an abstract class that implements JsonAdapter.Factory to tell Kotshi to generate a factory containing all adapters in this module.
A helper class for Kotshi.
A JsonAdapter that implements toString
. This class is here to avoid adding one extra method per generated adapter.
Annotation to be placed on a sealed class to describe how it should be parsed.
An annotation must be applied to subtypes of a sealed class to specify the value that represents the type.
Flag for enabling/disabling the use of adapters for primitive types.
Registers the annotated type in the Kotshi json adapter factory. All registered adapters take priority over all generated adapters.
Flag for enabling/disabling null serialization. Can be applied both to a factory or to individual adapters.