Custom Backed Enum cast #886
Unanswered
CristianGiordano
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to create a custom backed enum cast?
I have an incoming webhook payload as :
My enum:
I tried extending the
EnumCast
however I think due to the nature of native enums, my#[WithCast(ToLowercaseEnumCast)]
isn't triggered on my data class.Is this possible at all? I can just use the same casing from the webhook, but I wanted consistency in my app.
Beta Was this translation helpful? Give feedback.
All reactions