Package com.apollographql.apollo3.compiler.codegen.kotlin.helpers

Functions

Link copied to clipboard
fun TypeSpec.Builder.makeDataClass(parameters: List<ParameterSpec>, addJvmOverloads: Boolean = false): TypeSpec.Builder

Makes this TypeSpec.Builder a data class and add a primary constructor using the given parameter spec as well as the corresponding properties

Link copied to clipboard
fun TypeSpec.Builder.makeDataClassFromProperties(properties: List<PropertySpec>): TypeSpec.Builder