All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.ansman.kotshi.SerializeNulls.kt Maven / Gradle / Ivy

Go to download

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