Extract Payload for enum cases having associated value

I've pitched a different solution here DiscriminatedUnion Protocol

1 Like