Previously we used NSURLSession data tasks to make some REST requests to a web service. Today let’s clean that up by building a higher layer of abstraction by mapping the JSON to a strongly-typed class.

Source: Strongly-Typed GET and POST Calls with NSURLSession – Grok Swift