Skip to content

Commit

Permalink
Updated gender field to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexYoungmanMoJ committed Jan 30, 2025
1 parent 1f72871 commit 98a9d5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class LearnerEventsRequest(
val dateOfBirth: LocalDate?,

@SerializedName("gender")
val gender: Gender,
val gender: Gender?,
) {
fun extractFromRequest(): LearnerEventsLRSRequest = LearnerEventsLRSRequest(
givenName = givenName,
familyName = familyName,
uln = uln,
dateOfBirth = dateOfBirth,
gender = gender.value,
gender = gender?.value,
)
}

0 comments on commit 98a9d5a

Please sign in to comment.