iOS Build a Weather App Dark Sky API Client From JSON to CurrentWeather

Josh Gude
Josh Gude
6,449 Points

Why a Struct?

Why use a struct for the keys of the JSON response? This would seem to be a perfect scenario where I would wish to use a stringly typed enum. What are the advantages/disadvantages to the two?