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

se.ansman.kotshi.model.DataClassJsonAdapter.kt Maven / Gradle / Ivy

Go to download

An annotations processor that generates Moshi adapters from Kotlin data classes

There is a newer version: 3.0.0
Show newest version
package se.ansman.kotshi.model

import com.squareup.kotlinpoet.TypeVariableName
import se.ansman.kotshi.SerializeNulls

data class DataClassJsonAdapter(
    override val targetPackageName: String,
    override val targetSimpleNames: List,
    override val targetTypeVariables: List,
    val polymorphicLabels: Map,
    val properties: List,
    val serializeNulls: SerializeNulls,
    val constructorSignature: String,
) : GeneratableJsonAdapter() {
    val serializedProperties = properties.filterNot { it.isIgnored }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy