https://kotlinlang.org logo
#android
Title
# android
w

William Reed

08/27/2021, 1:52 PM
hi all - i have a bundle provided during a notification payload. i want to convert this into a
data class
that the bundle is expected to conform to. is there any out of the box way to do this? i’m sure it could be done with a code gen library, just not sure if it’s been done before
e

ephemient

08/28/2021, 6:32 AM
androidx.navigation.safeargs.kotlin does something like that, but it's designed to work with androidx.navigation so it might not suit your purposes
w

William Reed

08/30/2021, 5:44 PM
that might be a good reference - thanks 🙂
2 Views