Ahmed
02/23/2022, 3:34 PMdata class Person (val gender: GenderEnum)
GenderEnum
enum class GenderEnum(val type: Sring) {
MALE("MALE")
FEMALE("FEMALE")
OTHER("OTHER")
}
and my api response is
"data": { gender: "male" }
Now, I am getting an error saying, Cannot construct instance of the Person class, problem: Parameter specified as non-null is null: gender
anyone has the problem with jackson before ?marstran
02/23/2022, 3:42 PMdata class Data(val data: Person)