DataPropertyModel

class DataPropertyModel(val name: String, val type: TypeName, val private: Boolean, val kind: PropertyKind, val dataClass: ClassName?)

A property of a DataClassModel.

Parameters

name

the property name

type

the property type (with its nullability) - the type variables are replaced by Any? by the generator

private

true if the property is not accessible from the generated code (private, protected, or internal in another module): it is then accessed through kotlin-reflect

kind

the kind of the property

dataClass

the (raw) class name of the "data" class (whose property paths are generated) used by the property: the property type (PropertyKind.SIMPLE), the collection element type (PropertyKind.COLLECTION) or the map value type (PropertyKind.MAP) - null if this type is not a data class

Constructors

Link copied to clipboard
constructor(name: String, type: TypeName, private: Boolean, kind: PropertyKind, dataClass: ClassName?)

Properties

Link copied to clipboard
val dataClass: ClassName?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: TypeName