title: No value associated with key CodingKeys
body: <p>I'm trying to parse the following json: </p>
  
  <pre><code>"categories": [
          {
              "id": 42,
              "name": "Air Conditioning",
              "image_url": "system-data/category/Category-AirConditioning.png",
              "image_marker_url": "system-data/category/Marker_Category-Air Conditioning.png",
              "status_id": 7,
              "created_at": 1580452213,
              "updated_at": 1580452213
          },
          {
              "id": 43,
              "name": "Car Wash",
              "image_url": "system-data/category/Category-Carwash.png",
              "image_marker_url": "system-data/category/Marker_Category-Car Wash.png",
              "status_id": 7,
              "created_at": 1580452213,
              "updated_at": 1580452213
          },
          {
              "id": 45,
              "name": "Automobile Services",
              "image_url": "system-data/category/Category-Automobile.png",
              "image_marker_url": "system-data/category/Marker_Category-Automobile Services.png",
              "status_id": 7,
              "created_at": 1580452213,
              "updated_at": 1580452213
          },
          {
              "id": 48,
              "name": "Electrical",
              "image_url": "system-data/category/Category-Electrical.png",
              "image_marker_url": "system-data/category/Marker_Category-Electrical.png",
              "status_id": 7,
              "created_at": 1580452213,
              "updated_at": 1580452213
          },
          {
              "id": 49,
              "name": "Generator Repair &amp; Maintenance",
              "image_url": "system-data/category/Category-Generator.png",
              "image_marker_url": "system-data/category/Marker_Category-Generator Repair &amp; Maintenance.png",
              "status_id": 7,
              "created_at": 1580452213,
              "updated_at": 1580452213
          }
      ]
  </code></pre>
  
  <p>Below is my struct to map the json reponse into model:</p>
  
  <pre><code>struct CityCategory: Codable{
  
      let id: Int
      let name, imageUrl, imageMarkerUrl: String
      let statusID, createdAt, updatedAt: Int
  
      enum CodingKeys: String, CodingKey{
          case id = "id"
          case name = "name"
          case imageUrl = "image_url"
          case imageMarkerUrl = "image_marker_url"
          case createdAt = "created_at"
          case updatedAt = "updated_at"
          case statusID = "status_id"
      }
  
  }
  
  struct CityCategoryResponse: Codable{
      let cityCat: [CityCategory]
  }
  </code></pre>
  
  <p>I'm trying this: </p>
  
  <pre><code>let response = try JSONDecoder().decode(CityCategoryResponse.self, from: jsonData)
  
  </code></pre>
  
  <p>and it throws error.</p>
  
  <blockquote>
    <p>keyNotFound(CodingKeys(stringValue: "cityCat", intValue: nil),
    Swift.DecodingError.Context(codingPath: [], debugDescription: "No
    value associated with key CodingKeys(stringValue: \"cityCat\",
    intValue: nil) (\"cityCat\").", underlyingError: nil))</p>
  </blockquote>