robgray
09/26/2019, 8:13 PMMapper.notNullable()
with int backed enums. When I map this object I am there is no enumListProp
key in the map it returnsrobgray
09/26/2019, 8:13 PM@Test
fun testMappingListOfEnums() {
val test = TestObj()
test.listEnumProp = listOf(TestEnum.BLUE, TestEnum.RED)
val map = Mapper.mapNullable(TestObj.serializer(), test)
val subject = map["enumListProp"]
assertNotNull(subject)
}
robgray
09/26/2019, 8:15 PM