se.ansman.kotshi.model.DataClassJsonAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
An annotations processor that generates Moshi adapters from Kotlin data classes
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 }
}