isNullable

fun isNullable(): Boolean
var isNullable: Boolean? = null

If isGenerated is true, this represents whether null is a valid value to set on the attribute. If this is true, then the codeToSetDefault should be null unless a different default value is explicitly set.

This is Boolean to have null represent that nullability was not explicitly set, eg for primitives or legacy attributes that weren't made with nullability support in mind.