Ios swift – Best way to map a JSON string to a custom enum case without having access to the enums implementation in Swift?
Consider the following simple JSON: { "title": "Some title", "subtitle": "Some subtitle", "button_type": "rounded" } This is my current approach towards decoding the buttonType field: // I dont have access to this enums implementation as it comes from a 3rd…