A common pattern in Objective-c is to convert a data model object to and from a
NSDictionary<NSString *, id>. Many popular open-sourced projects like Mantle are built around this approach.
To leverage Swift's automatic decoding though, you'd first have to convert a
Dictionary<String, Any?> into
Data, and then use
JSONDecoder. Is there something in the standard library to support a conversion directly to and from dictionary <> model? If not, does this seem appropriate to have?