William Reed
09/29/2021, 1:50 PMparameter.annotations.firstOrNull { annot ->
annot.annotationType.resolve().isAssignableFrom(annotationType)
}?.arguments?.firstOrNull()?.let { annotation ->
foo = (annotation.value as? String)
}
i’m not used to casting like this, so just checking i’m not going down the wrong pathJiaxiang
09/29/2021, 5:43 PM