Johnroest
06/19/2019, 1:08 PMval data = call.receive<CreateExperienceRequestData>()
like this, and the object looks like this
data class CreateExperienceRequestData(
val companyName: String,
val jobTitle: String,
val yearMonthRange: YearMonthRange,
val profileId: ProfileId
)
If I don't specify, for example, the companyName in the JSON it'll be NULL. I want it to fail when the companyName is not specified, because the data class shouldn't be created with a null value for a non nullable field in the data class.