
se.ansman.kotshi.SerializeNulls.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
An annotations processor that generates Moshi adapters from Kotlin data classes
The newest version!
package se.ansman.kotshi
import com.squareup.moshi.JsonWriter
/**
* Flag for enabling/disabling [null serialization][JsonWriter.serializeNulls]. Can be applied both to a factory or to
* individual adapters.
*/
enum class SerializeNulls {
/**
* Don't change what the reader has set.
*/
DEFAULT,
/**
* Enable null serialization for this adapter and for child adapters (unless they override it).
*/
ENABLED,
/**
* Disable null serialization for this adapter and for child adapters (unless they override it).
*/
DISABLED
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy