Commit e8f2a93 1 parent 631a1dc commit e8f2a93 Copy full SHA for e8f2a93
File tree 1 file changed +5
-2
lines changed
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ data class InductionSchedule(
34
34
)
35
35
36
36
class InductionScheduleDeserializer : JsonDeserializer <InductionSchedule >() {
37
- override fun deserialize (parser : JsonParser , ctxt : DeserializationContext ): InductionSchedule {
37
+ override fun deserialize (
38
+ parser : JsonParser ,
39
+ ctxt : DeserializationContext ,
40
+ ): InductionSchedule {
38
41
val node = parser.codec.readTree< com.fasterxml.jackson.databind.JsonNode > (parser)
39
42
val nomisNumber = node[" prisonNumber" ]?.asText()
40
43
val deadlineDate = node[" deadlineDate" ]?.asText()?.let { LocalDate .parse(it) }
@@ -45,7 +48,7 @@ class InductionScheduleDeserializer : JsonDeserializer<InductionSchedule>() {
45
48
deadlineDate = deadlineDate,
46
49
scheduleStatus = scheduleStatus,
47
50
scheduleCalculationRule = scheduleCalculationRule,
48
- nomisNumber = nomisNumber
51
+ nomisNumber = nomisNumber,
49
52
)
50
53
}
51
54
}
You can’t perform that action at this time.
0 commit comments