You can use json4swift
Online JSON to Swift Models Generator
Our motive is simple, in this age of technology; convenience and automation, working with JSON for Swift shouldn't be complicated anymore. Without dependency on other tools and framework, this free online utility maps your web service responses to appropriate models. It makes working with JSON easier and manageable.
Free Utility
This online free utility generates a Swift 2.0 and Swift 4.0 compatible models which can be simply dragged & used in your project.
Map Response
Simply map your web service response with your models with a single line.
Dictionary Representation
The objects can be referred to as a dictionary anytime should you need them with the current state and same key-value pairs.