The DTOs data types must be chosen accordingly! Use ? and no default value when the type should be null, use no ? and no default value when the value should be provided, and no ? and a default value when the value can be provided.
xxxxxxxxxx
val id: Long? // null + can be provided
val foo: String, // not null + has to be provided
val bar: String = "", // not null + can be provided