With Swift 3 JSONSerialization, if a part of your data model was completely dynamic, you could always just leave the deserialized data at Any and l
JSONSerialization
Any
Simply you can use AnyCodable type from Matt Thompson's cool library AnyCodable.
AnyCodable
Eg:
import AnyCodable struct Foo: Codable { var bar: AnyCodable }